Contract for anything that knows how to parse XML.
The default implementation is always in scope and uses the standard java javax.xml.parsers.DocumentBuilderFactory,
with no special option. This can be overridden to set some options or, more drastically, to change the parsing
mechanism entirely. A typical use case is the nekohtml module, which needs to take control of the entire parsing
process to tidy up messy HTML documents.
Contract for anything that knows how to parse XML.
The default implementation is always in scope and uses the standard java
javax.xml.parsers.DocumentBuilderFactory
, with no special option. This can be overridden to set some options or, more drastically, to change the parsing mechanism entirely. A typical use case is thenekohtml
module, which needs to take control of the entire parsing process to tidy up messy HTML documents.