org.jdom.Document as a DOM org.w3c.dom.Document .
| Modifier and Type | Field and Description |
|---|---|
| private String | adapterClass
Adapter to use for interfacing with the DOM implementation |
| private static final String | |
| private static final String | DEFAULT_ADAPTER_CLASS
Default adapter class |
| private boolean | forceNamespaceAware
Output a DOM with namespaces but just the empty namespace |
| Access | Constructor and Description |
|---|---|
| public | DOMOutputter()
This creates a new DOMOutputter which will attempt to first locate a DOM implementation to use via JAXP, and if JAXP does not exist or there's a problem, will fall back to the default parser. |
| public | DOMOutputter(String
String name of class
to use for DOM outputThis creates a new DOMOutputter using the specified DOMAdapter implementation as a way to choose the underlying parser. |
| Modifier and Type | Method and Description |
|---|---|
| private Document | |
| public boolean | Returns: the forceNamespaceAware flag valueReturns whether DOMs will be constructed with namespaces even when the source document has elements all in the empty namespace. |
| private static String | getXmlnsTagFor(Namespace
Namespace to add definition ofThis will handle adding any |
| public Document | |
| private Element | |
| private Attr | |
| public void |
| adapterClass | back to summary |
|---|---|
| private String adapterClass Adapter to use for interfacing with the DOM implementation | |
| CVS_ID | back to summary |
|---|---|
| private static final String CVS_ID | |
| DEFAULT_ADAPTER_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_ADAPTER_CLASS Default adapter class | |
| forceNamespaceAware | back to summary |
|---|---|
| private boolean forceNamespaceAware Output a DOM with namespaces but just the empty namespace | |
| DOMOutputter | back to summary |
|---|---|
| public DOMOutputter() This creates a new DOMOutputter which will attempt to first locate a DOM implementation to use via JAXP, and if JAXP does not exist or there's a problem, will fall back to the default parser. | |
| DOMOutputter | back to summary |
|---|---|
| public DOMOutputter(String adapterClass) This creates a new DOMOutputter using the specified DOMAdapter implementation as a way to choose the underlying parser.
| |
| createDOMDocument | back to summary |
|---|---|
| private Document createDOMDocument(DocType dt) throws JDOMException | |
| getForceNamespaceAware | back to summary |
|---|---|
| public boolean getForceNamespaceAware() Returns whether DOMs will be constructed with namespaces even when the source document has elements all in the empty namespace.
| |
| getXmlnsTagFor | back to summary |
|---|---|
| private static String getXmlnsTagFor(Namespace ns) This will handle adding any
| |
| output | back to summary |
|---|---|
| public Document output(Document document) throws JDOMException This converts the JDOM | |
| output | back to summary |
|---|---|
| private Element output(Element element, Document domDoc, NamespaceStack namespaces) throws JDOMException | |
| output | back to summary |
|---|---|
| private Attr output(Attribute attribute, Document domDoc) throws JDOMException | |
| setForceNamespaceAware | back to summary |
|---|---|
| public void setForceNamespaceAware(boolean flag) Controls how NO_NAMESPACE nodes are handeled. If true the outputter always creates a namespace aware DOM. | |