Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by choroba (Canon)
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
Replies are listed 'Best First'.
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 examining the Monastery: (9)
As of 2015-07-08 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls