org.jdom.output
Class DOMOutputter
java.lang.Object
org.jdom.output.DOMOutputter
public class DOMOutputter
extends java.lang.Object
$Revision: 1.43 $, $Date: 2007/11/10 05:29:01 $- Brett McLaughlin
- Jason Hunter
- Matthew Merlo
- Dan Schaffer
- Yusuf Goolamabbas
- Bradley S. Huffman
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.
|
boolean | getForceNamespaceAware() - Returns whether DOMs will be constructed with namespaces even when
the source document has elements all in the empty namespace.
|
org.w3c.dom.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.
|
DOMOutputter
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
public DOMOutputter(String adapterClass)
This creates a new DOMOutputter using the specified DOMAdapter
implementation as a way to choose the underlying parser.
adapterClass
- String
name of class
to use for DOM output
getForceNamespaceAware
public boolean getForceNamespaceAware()
Returns whether DOMs will be constructed with namespaces even when
the source document has elements all in the empty namespace.
- the forceNamespaceAware flag value
output
public org.w3c.dom.Document output(Document document)
throws JDOMException
This converts the JDOM Document
parameter to a
DOM Document, returning the DOM version. The DOM implementation
is the one chosen in the constructor.
document
- Document
to output.
- an
org.w3c.dom.Document
version
setForceNamespaceAware
public void setForceNamespaceAware(boolean flag)
Controls how NO_NAMESPACE nodes are handeled. If true the outputter
always creates a namespace aware DOM.
Copyright B) 2007 Jason Hunter, Brett McLaughlin. All Rights Reserved.