You can use the ignore_elts => { content => 1 } option to ignore content.
I am a bit surprised by the performances you mention though, especially as my tests (a little dated, but AFAIK not much has changed since) indicated that XML::Sax was quite slow. What perl version is this on?
In reply to Re: Prune Twig From Huge XML File
by mirod
in thread Prune Twig From Huge XML File
by andergoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |