Package org.dom4j.io
package org.dom4j.io
Provides input and output via SAX and DOM together with writing dom4j objects to streams as XML text.
-
ClassDescription
DispatchHandler
implements theElementHandler
interface and provides a means to register multipleElementHandler
instances to be used by an event based processor.DOMReader
navigates a W3C DOM tree and creates a DOM4J tree from it.SAXContentHandler
builds W3C DOM object via SAX events.DOMWriter
takes a DOM4J tree and outputs it as a W3C DOM objectElementModifier defines a modifier ofElement
objects.ElementStack
is used internally inside theSAXContentHandler
to maintain a stack ofElement
instances.HTMLWriter
takes a DOM4J tree and formats it to a stream as HTML.JAXPHelper
contains some helper methods for working with JAXP.OutputFormat
represents the format configuration used byXMLWriter
and its base classes to format the XML outputThis extension on theDispatchHandler
prunes the currentElement
when there are noinvalid reference
ElementHandler
PruningElementStack
is a stack ofElement
instances which will prune the tree when a path expression is reached.SAXContentHandler
builds a dom4j tree via SAX events.Records SAX events such that they may be "replayed" at a later time.SAXHelper
contains some helper methods for working with SAX and XMLReader objects.The SAXModifier reads, modifies and writes XML documents using SAX.This extension of the SAXContentHandler writes SAX events immediately to the provided XMLWriter, unless someinvalid reference
org.dom4.ElementHandler
ThisElementHandler
is used to triggerElementModifier
objects in order to modify (parts of) the Document on the fly.Exception internally thrown by the SAX Modification classes.The SAXModifier parses, updates and writes an XML document.SAXReader
creates a DOM4J tree from SAX parsing events.SAXValidator
validates an XML document by writing the document to a text buffer and parsing it with a validating SAX parser.SAXWriter
writes a DOM4J tree to a SAX ContentHandler.Writes DOM4JNode
s to a StAX event stream.XMLResult
implements a JAXPSAXResult
for an output stream with support for pretty printing and control over how the XML is formatted.XMLWriter
takes a DOM4J tree and formats it to a stream as XML.