Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Struggling with XML

by choroba (Abbot)
on Oct 05, 2012 at 12:04 UTC ( #997457=note: print w/ replies, xml ) Need Help??


in reply to Struggling with XML

Using XML::XSH2:

open 1.xml ; echo Status: /root/dict[@key="status"]/value ; for /root/dict[@key="data"]/list/dict[@key="subnet" or @key="netmask" +or @key="gateway"] echo :s @key ': ' (value) ;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Struggling with XML
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-11-28 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (199 votes), past polls