Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to get paired values from the nested XML structure?

by choroba (Abbot)
on Nov 01, 2011 at 15:01 UTC ( #935136=note: print w/ replies, xml ) Need Help??


in reply to How to get paired values from the nested XML structure?

I usually use XML::XSH2 for XML processing. In this case, I'd just need the following lines:

open 935133.xml ; for /excerpt/unit/products/article/quantity echo (../../../Name) (../a +rt_code) (.) ;


Comment on Re: How to get paired values from the nested XML structure?
Download Code
Re^2: How to get paired values from the nested XML structure?
by vagabonding electron (Hermit) on Nov 01, 2011 at 15:25 UTC
    Unfortunately XML::XSH2 seems not to be available for ActivePerl v.5.12.
        I did.
        (...) Result: PASS PAJAS/XML-XSH2-2.1.3.tar.gz Tests succeeded but one dependency not OK (XML::LibXSLT) PAJAS/XML-XSH2-2.1.3.tar.gz [dependencies] -- NA Running make install make test had returned bad status, won't install without force
        I must admit that I am a novice in perl. Mostly I am able to modify the scripts but not to use another approach. I have some (microscopic) experience with XML::LibXML. Could the above task be done with this module?
        Thanks.
        VE
Re^2: How to get paired values from the nested XML structure?
by vagabonding electron (Hermit) on Nov 01, 2011 at 19:45 UTC
    Sorry choroba I forgot to say thank you, this is not my style :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2014-09-17 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (55 votes), past polls