Bugzilla – Bug 665
Add property to ignore all errors (?)
Last modified: 2009-11-23 17:17:40 CET
I'm using HtmlParser with XmlViolationPolicy.ALTER_INFOSET to get behavior similar to HtmlCleaner or Html Tidy. To make this work with Saxon via SAXSource, I ended up overriding the setErrorHandler method to do nothing, because otherwise the XSLT processor refused to process input with "net.sf.saxon.trans.XPathException: The XML parser reported one or more errors". Could you consider adding a setting/property that disables the error reporting altogether? Something like setIgnoreErrors(true) to disable the functionality of setErrorHandler method...