NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 665 - Add property to ignore all errors (?)
Add property to ignore all errors (?)
Status: NEW
Classification: Unclassified
Component: HTML parser
All All
: P2 enhancement
Assigned To: Nobody
Depends on:
  Show dependency treegraph
Reported: 2009-10-06 01:08 CEST by Pavol Vaskovic
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Pavol Vaskovic 2009-10-06 01:08:13 CEST
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...