Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by choroba (Chancellor)
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) (.) ;

Replies are listed 'Best First'.
Re^2: How to get paired values from the nested XML structure?
by vagabonding electron (Chaplain) 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 (Chaplain) 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 examining the Monastery: (17)
As of 2016-06-28 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (359 votes). Check out past polls.