in reply to How to tell XML::Parser to stop?

You could just regex the file yourself without XML::Parse. Works for me.