XML::Twig is similar in that you will be able to delete elements or whole subtrees as soon as you no longer need them. XML::Twig will also fire event handlers when elements are completely parsed. I found it very easy to use.
Take a look at the XML::Twig homepage. You will find a comparison between different XML modules and how well they are suited for different tasks.
$\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print
|