public class DOMOutputter extends Object
org.jdom.Document
as a DOM org.w3c.dom.Document
.Constructor and Description |
---|
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(String adapterClass)
This creates a new DOMOutputter using the specified DOMAdapter
implementation as a way to choose the underlying parser.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getForceNamespaceAware()
Returns whether DOMs will be constructed with namespaces even when
the source document has elements all in the empty namespace.
|
Document |
output(Document document)
This converts the JDOM
Document parameter to a
DOM Document, returning the DOM version. |
void |
setForceNamespaceAware(boolean flag)
Controls how NO_NAMESPACE nodes are handeled.
|
public DOMOutputter()
public DOMOutputter(String adapterClass)
adapterClass
- String
name of class
to use for DOM outputpublic void setForceNamespaceAware(boolean flag)
flag
- public boolean getForceNamespaceAware()
public Document output(Document document) throws JDOMException
Document
parameter to a
DOM Document, returning the DOM version. The DOM implementation
is the one chosen in the constructor.document
- Document
to output.org.w3c.dom.Document
versionJDOMException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.