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
DispatchHandlerimplements theElementHandlerinterface and provides a means to register multipleElementHandlerinstances to be used by an event based processor.DOMReadernavigates a W3C DOM tree and creates a DOM4J tree from it.SAXContentHandlerbuilds W3C DOM object via SAX events.DOMWritertakes a DOM4J tree and outputs it as a W3C DOM objectElementModifier defines a modifier ofElementobjects.ElementStackis used internally inside theSAXContentHandlerto maintain a stack ofElementinstances.HTMLWritertakes a DOM4J tree and formats it to a stream as HTML.JAXPHelpercontains some helper methods for working with JAXP.OutputFormatrepresents the format configuration used byXMLWriterand its base classes to format the XML outputThis extension on theDispatchHandlerprunes the currentElementwhen there are noobjects active the element.invalid reference
ElementHandlerPruningElementStackis a stack ofElementinstances which will prune the tree when a path expression is reached.SAXContentHandlerbuilds a dom4j tree via SAX events.Records SAX events such that they may be "replayed" at a later time.SAXHelpercontains 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 someis still handling the current Element.invalid reference
org.dom4.ElementHandlerThisElementHandleris used to triggerElementModifierobjects 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.SAXReadercreates a DOM4J tree from SAX parsing events.SAXValidatorvalidates an XML document by writing the document to a text buffer and parsing it with a validating SAX parser.SAXWriterwrites a DOM4J tree to a SAX ContentHandler.Writes DOM4JNodes to a StAX event stream.XMLResultimplements a JAXPSAXResultfor an output stream with support for pretty printing and control over how the XML is formatted.XMLWritertakes a DOM4J tree and formats it to a stream as XML.