I'm afraid that you can't do that with XML::Parse because it dies on malformed XML.
On the other hand try and see XML::SAX and XML::SAX::Exception. I think they can help you
Careful with that hash Eugene.
In reply to Re^3: Trapping XML error using Perl
by psini
in thread Trapping XML error using Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |