Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: TWIGging XML to CSV: what's wrong with my syntax?

by choroba (Cardinal)
on Apr 10, 2015 at 21:07 UTC ( [id://1123078]=note: print w/replies, xml ) Need Help??


in reply to TWIGging XML to CSV: what's wrong with my syntax?

Using XML::XSH2, a wrapper around XML::LibXML:
stream :f datafile_towns.xml :F /dev/null select town { if (location/mapx > 500) { echo :n :s (towndata/townname) , (player/playeralliance/allian +ceticker) ; echo :n :s , (player/playername) , (towndata/townname) , (loca +tion/mapy) ; echo :s , (location/mapx); rm . ; } }

On MSwin, replace /dev/null with NUL.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found