The most commonly used builder is SAXBuilder which constructs a JDOM document using a SAX parser and can pull content from files, streams, sockets, readers, and so on. It can use any underlying SAX parser to handle the parsing chores.
DOMBuilder lets you build JDOM content from existing org.w3c.dom.*
instances.
The StAXStreamBuilder and StAXEventBuilder classes allow you to build JDOM content from StAX-based XMLStreamReader and XMLEventReader instances.
| Modifier and Type | Class and Description |
|---|---|
| public class | DOMBuilder
Builds a JDOM Document from a pre-existing DOM |
| public class | JDOMParseException
Thrown during parse errors, with information about where the parse error occurred as well as access to the partially built document. |
| public class | SAXBuilder
Builds a JDOM Document using a SAX parser. |
| public class | StAXEventBuilder
Builds a JDOM Document from a StAX-based XMLEventReader. |
| public class | StAXStreamBuilder
Builds a JDOM Document from a StAX-based XMLStreamReader. |
| public class | StAXStreamWriter
An |