I can't resist: How does the output of the last approach differ from mine where I said you have to just throw away the <booklist> tag from your input file? By the way: Extra newlines are also simple.
But if you really need perl:
perl -ne 'print unless /booklist/' < data.xml
Best regards
McA
In reply to Re^3: XML::Simple XML / XMLin / XMLout? or something else?
by McA
in thread XML::Simple XML / XMLin / XMLout? or something else?
by Roboz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |