note
McA
<p>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.</p>
<p>But if you really need perl:
<code>
perl -ne 'print unless /booklist/' < data.xml
</code>
</p>
<p>Best regards<br/>
McA</p>
998674
998697