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 ;--)
In reply to Re^2: searching the XML file for certain nodes
by mirod
in thread searching the XML file for certain nodes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |