in reply to Re: searching the XML file for certain nodes
in thread searching the XML file for certain nodes
Hey, I can do low-memory (and cryptic!) too. And I'll raise you with a one-liner:
perl -MXML::Twig -e'XML::Twig->parse( twig_roots => { q{p[@v="NO"]} => 1 }, twig_print_outside_roots => 1, shift)' myfile.xmlLet's play XML golf! (in which case I'll have to release a special golf-edition of XML::Twig, with shorter option names ;--)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: searching the XML file for certain nodes
by Jenda (Abbot) on Mar 10, 2009 at 23:08 UTC | |
by Anonymous Monk on Mar 13, 2009 at 10:57 UTC |