javax.xml.transform.dom

Class DOMSource

public class DOMSource extends Object implements Source

An XML source specified as a W3C DOM node context.
Field Summary
static StringFEATURE
Factory feature indicating that DOM sources are supported.
Constructor Summary
DOMSource()
Default constructor.
DOMSource(Node node)
Constructor with a context node.
DOMSource(Node node, String systemId)
Constructor with a context node and system ID.
Method Summary
NodegetNode()
Returns the context node.
StringgetSystemId()
Returns the base URI to use as the context for resolving entities.
voidsetNode(Node node)
Sets the context node.
voidsetSystemId(String systemId)
Sets the base URI to use as the context for resolving entities.

Field Detail

FEATURE

public static final String FEATURE
Factory feature indicating that DOM sources are supported.

Constructor Detail

DOMSource

public DOMSource()
Default constructor.

DOMSource

public DOMSource(Node node)
Constructor with a context node.

DOMSource

public DOMSource(Node node, String systemId)
Constructor with a context node and system ID.

Method Detail

getNode

public Node getNode()
Returns the context node.

getSystemId

public String getSystemId()
Returns the base URI to use as the context for resolving entities.

setNode

public void setNode(Node node)
Sets the context node.

setSystemId

public void setSystemId(String systemId)
Sets the base URI to use as the context for resolving entities.