How to limit errors from XML::LibXML::Schema

"Martin J. Evans" <[email protected]> Mon, 13 Sep 2010 15:36:20 +0100
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Hi,

I'm using XML::LibXML::Schema to validate a document against a schema. Malicious input of documents with lots of errors is causing me a headache as the error string code obviously does some recursion and I get:

Deep recursion on subroutine "XML::LibXML::Error::as_string" at /usr/local/lib/perl/5.10.0/XML/LibXML/Error.pm line 182

Does anyone know if there is a way to limit the number of errors found/reported or any other way of avoiding the deep recursion.

Martin
-- 
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs