| java.lang.Object | |
| ↳ | javax.xml.transform.dom.DOMSource |
Acts as a holder for a transformation Source tree in the form of a Document Object Model (DOM) tree.
Note that XSLT requires namespace support. Attempting to transform a DOM that was not contructed with a namespace-aware parser may result in errors. Parsers can be made namespace aware by calling setNamespaceAware(boolean).
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | FEATURE | If getFeature(String) returns true when passed this value as an argument, the Transformer supports Source input of this type. |
|||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Zero-argument default constructor. |
||||||||||
|
|
Create a new input source with a DOM node.
|
||||||||||
|
|
Create a new input source with a DOM node, and with the system ID also passed in as the base URI.
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Get the node that represents a Source DOM tree.
|
||||||||||
|
|
Get the base ID (URL or system ID) from where URLs will be resolved.
|
||||||||||
|
|
Set the node that will represents a Source DOM tree.
|
||||||||||
|
|
Set the base ID (URL or system ID) from where URLs will be resolved.
|
||||||||||
| [Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
|||||||||||
From interface javax.xml.transform.Source
|
|||||||||||
If getFeature(String) returns true when passed this value as an argument, the Transformer supports Source input of this type.
Zero-argument default constructor. If this constructor is used, and no DOM source is set using setNode(Node) , then the Transformer will create an empty source Document using newDocument().
Create a new input source with a DOM node. The operation will be applied to the subtree rooted at this node. In XSLT, a "/" pattern still means the root of the tree (not the subtree), and the evaluation of global variables and parameters is done from the root node also.
| n | The DOM node that will contain the Source tree. |
|---|
Create a new input source with a DOM node, and with the system ID also passed in as the base URI.
| node | The DOM node that will contain the Source tree. |
|---|---|
| systemID | Specifies the base URI associated with node. |
Get the node that represents a Source DOM tree.
Get the base ID (URL or system ID) from where URLs will be resolved.
Set the node that will represents a Source DOM tree.
| node | The node that is to be transformed. |
|---|
Set the base ID (URL or system ID) from where URLs will be resolved.
| systemID | Base URL for this DOM tree. |
|---|