Binford has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am trying to parse a VERY large XML file of the form:
I want to create a hash with <url> as the key and <appDeploymentFile> as value for further processing. I've tried all sorts of XPATH values in twig_handler for it, but just can't seem to figure it out. Any help appreciated!<?xml version="1.0" encoding="UTF-8"?> <authenticationReports> <generatedTime>Tue Sep 29 07:07:34 PDT 2009</generatedTime> <appDeploymentFile name="app-deployment.properties.hklcp.trading"> <application name="hk"> <urlInfo> <url>a/b/hk/accts_subscription</url> <otherPrereq>HKPwdPreReq</otherPrereq> </urlInfo> <urlInfo> <url>a/b/hk/accts_forms</url> <otherPrereq>HKPwdPreReq</otherPrereq> </urlInfo> <urlInfo> <url>a/b/hk/custtradingpage</url> <otherPrereq>BasicPrereq</otherPrereq> </urlInfo> <urlInfo> <url>a/b/hk/accts_userinfo</url> <otherPrereq>HKPwdPreReq</otherPrereq> </urlInfo> <urlInfo> <url>a/b/hk/headermain</url> </urlInfo> <urlInfo> <url>a/b/hk/custservicepage</url> </urlInfo> <urlInfo> <url>a/b/hk/accts_transfermoney</url> <otherPrereq>HKPwdPreReq</otherPrereq> </urlInfo> <urlInfo> <url>a/b/hk/userprereq</url> </urlInfo> <urlInfo> <url>a/b/hk/indices_us</url> </urlInfo> <urlInfo> <url>a/b/hk/homeloggedmessage</url> </urlInfo> <urlInfo> <url>a/b/hk/lead</url> </urlInfo> <urlInfo> <url>a/b/hk/orderviewmin</url> </urlInfo> <urlInfo> <url>a/b/hk/accts_changelogin</url> <otherPrereq>SessionPreReq</otherPrereq> </urlInfo> </application> </appDeploymentFile>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: XML::Twig help please
by mirod (Canon) on Oct 14, 2009 at 16:18 UTC | |
by Binford (Sexton) on Oct 22, 2009 at 16:09 UTC | |
Re: XML::Twig help please
by toolic (Bishop) on Oct 14, 2009 at 16:09 UTC | |
by Binford (Sexton) on Oct 14, 2009 at 20:39 UTC | |
Re: XML::Twig help please
by Jenda (Abbot) on Oct 15, 2009 at 13:56 UTC |
Back to
Seekers of Perl Wisdom