Class DomTripXMLReader

java.lang.Object
eu.maveniverse.domtrip.sax.DomTripXMLReader
All Implemented Interfaces:
XMLReader

public class DomTripXMLReader extends Object implements XMLReader
An XMLReader implementation that reads from a domtrip Document.

This class allows a domtrip document to be used as a SAXSource for JAXP interoperability. When parse(InputSource) is called, it walks the domtrip document tree and emits SAX events to the registered ContentHandler.

Supported Features:

  • http://xml.org/sax/features/namespaces - always true
  • http://xml.org/sax/features/namespace-prefixes - controls whether namespace declarations are reported as attributes (default false)

Supported Properties:

  • http://xml.org/sax/properties/lexical-handler - LexicalHandler for comment and CDATA events
Since:
1.3.0
See Also: