Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#constants) \| [Inherited Constants](https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#inhconstants) \| [Ctors](https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#pubctors) \| [Methods](https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#inhmethods)

# DOMResult

` public class DOMResult `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/javax/xml/transform/Result `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | javax.xml.transform.dom.DOMResult |

<br />

*** ** * ** ***

<br />

Acts as a holder for a transformation result tree in the form of a Document Object Model (DOM) tree.

If no output DOM source is set, the transformation will create a Document node as the holder for the result of the transformation, which may be retrieved with `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#getNode()`.

<br />

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#FEATURE` <br /> If `https://developer.android.com/reference/javax/xml/transform/TransformerFactory#getFeature(java.lang.String)` returns `true` when passed this value as an argument, the `Transformer` supports `Result` output of this type. |

### Inherited constants

From interface `https://developer.android.com/reference/javax/xml/transform/Result` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/javax/xml/transform/Result#PI_DISABLE_OUTPUT_ESCAPING`

The name of the processing instruction that is sent if the result tree disables output escaping.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/javax/xml/transform/Result#PI_ENABLE_OUTPUT_ESCAPING`

The name of the processing instruction that is sent if the result tree enables output escaping at some point after having received a PI_DISABLE_OUTPUT_ESCAPING processing instruction.

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult()() ` <br /> Zero-argument default constructor. |
| ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node)(https://developer.android.com/reference/org/w3c/dom/Node node) ` <br /> Use a DOM node to create a new output target. |
| ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20java.lang.String)(https://developer.android.com/reference/org/w3c/dom/Node node, https://developer.android.com/reference/java/lang/String systemId) ` <br /> Use a DOM node to create a new output target with the specified System ID. |
| ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20org.w3c.dom.Node)(https://developer.android.com/reference/org/w3c/dom/Node node, https://developer.android.com/reference/org/w3c/dom/Node nextSibling) ` <br /> Use a DOM node to create a new output target specifying the child node where the result nodes should be inserted before. |
| ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20org.w3c.dom.Node,%20java.lang.String)(https://developer.android.com/reference/org/w3c/dom/Node node, https://developer.android.com/reference/org/w3c/dom/Node nextSibling, https://developer.android.com/reference/java/lang/String systemId) ` <br /> Use a DOM node to create a new output target specifying the child node where the result nodes should be inserted before and the specified System ID. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/org/w3c/dom/Node` | ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#getNextSibling()() ` <br /> Get the child node before which the result nodes will be inserted. |
| ` https://developer.android.com/reference/org/w3c/dom/Node` | ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#getNode()() ` <br /> Get the node that will contain the result DOM tree. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#getSystemId()() ` <br /> Get the System Identifier. |
| ` void` | ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#setNextSibling(org.w3c.dom.Node)(https://developer.android.com/reference/org/w3c/dom/Node nextSibling) ` <br /> Set the child node before which the result nodes will be inserted. |
| ` void` | ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#setNode(org.w3c.dom.Node)(https://developer.android.com/reference/org/w3c/dom/Node node) ` <br /> Set the node that will contain the result DOM tree. |
| ` void` | ` https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#setSystemId(java.lang.String)(https://developer.android.com/reference/java/lang/String systemId) ` <br /> Set the systemId that may be used in association with the node. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/javax/xml/transform/Result ` ` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/javax/xml/transform/Result#getSystemId()() `

Get the system identifier that was set with setSystemId.
` abstract void` ` https://developer.android.com/reference/javax/xml/transform/Result#setSystemId(java.lang.String)(https://developer.android.com/reference/java/lang/String systemId) `

Set the system identifier for this Result.

## Constants

### FEATURE

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String FEATURE
```

<br />

If `https://developer.android.com/reference/javax/xml/transform/TransformerFactory#getFeature(java.lang.String)` returns `true` when passed this value as an argument, the `Transformer` supports `Result` output of this type.

<br />

<br />

Constant Value: "http://javax.xml.transform.dom.DOMResult/feature"

## Public constructors

### DOMResult

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DOMResult ()
```

<br />

Zero-argument default constructor.

`node`, `siblingNode` and `systemId` will be set to `null`.

<br />

<br />

### DOMResult

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DOMResult (Node node)
```

<br />

Use a DOM node to create a new output target.

In practice, the node should be a `https://developer.android.com/reference/org/w3c/dom/Document` node, a `https://developer.android.com/reference/org/w3c/dom/DocumentFragment` node, or a `https://developer.android.com/reference/org/w3c/dom/Element` node. In other words, a node that accepts children.

`siblingNode` and `systemId` will be set to `null`.

<br />

<br />

| Parameters ||
|---|---|
| `node` | `Node`: The DOM node that will contain the result tree. <br /> |

### DOMResult

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DOMResult (Node node, 
                String systemId)
```

<br />

Use a DOM node to create a new output target with the specified System ID.

<br />

In practice, the node should be a `https://developer.android.com/reference/org/w3c/dom/Document` node, a `https://developer.android.com/reference/org/w3c/dom/DocumentFragment` node, or a `https://developer.android.com/reference/org/w3c/dom/Element` node. In other words, a node that accepts children.

`siblingNode` will be set to `null`.

<br />

<br />

| Parameters ||
|---|---|
| `node` | `Node`: The DOM node that will contain the result tree. <br /> |
| `systemId` | `String`: The system identifier which may be used in association with this node. <br /> |

### DOMResult

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DOMResult (Node node, 
                Node nextSibling)
```

<br />

Use a DOM node to create a new output target specifying the child node where the result nodes should be inserted before.

In practice, `node` and `nextSibling` should be a `https://developer.android.com/reference/org/w3c/dom/Document` node, a `https://developer.android.com/reference/org/w3c/dom/DocumentFragment` node, or a `https://developer.android.com/reference/org/w3c/dom/Element` node. In other words, a node that accepts children.

Use `nextSibling` to specify the child node where the result nodes should be inserted before. If `nextSibling` is not a sibling of `node`, then an `IllegalArgumentException` is thrown. If `node` is `null` and `nextSibling` is not `null`, then an `IllegalArgumentException` is thrown. If `nextSibling` is `null`, then the behavior is the same as calling `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node)`, i.e. append the result nodes as the last child of the specified `node`.

`systemId` will be set to `null`.

<br />

<br />

| Parameters ||
|---|---|
| `node` | `Node`: The DOM node that will contain the result tree. <br /> |
| `nextSibling` | `Node`: The child node where the result nodes should be inserted before. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | If `nextSibling` is not a sibling of `node`. |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | If `node` is `null` and `nextSibling` is not `null`. |

### DOMResult

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DOMResult (Node node, 
                Node nextSibling, 
                String systemId)
```

<br />

Use a DOM node to create a new output target specifying the child node where the result nodes should be inserted before and the specified System ID.

In practice, `node` and `nextSibling` should be a `https://developer.android.com/reference/org/w3c/dom/Document` node, a `https://developer.android.com/reference/org/w3c/dom/DocumentFragment` node, or a `https://developer.android.com/reference/org/w3c/dom/Element` node. In other words, a node that accepts children.

Use `nextSibling` to specify the child node where the result nodes should be inserted before. If `nextSibling` is not a sibling of `node`, then an `IllegalArgumentException` is thrown. If `node` is `null` and `nextSibling` is not `null`, then an `IllegalArgumentException` is thrown. If `nextSibling` is `null`, then the behavior is the same as calling `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20java.lang.String)`, i.e. append the result nodes as the last child of the specified node and use the specified System ID.

<br />

<br />

| Parameters ||
|---|---|
| `node` | `Node`: The DOM node that will contain the result tree. <br /> |
| `nextSibling` | `Node`: The child node where the result nodes should be inserted before. <br /> |
| `systemId` | `String`: The system identifier which may be used in association with this node. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | If `nextSibling` is not a sibling of `node`. |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | If `node` is `null` and `nextSibling` is not `null`. |

## Public methods

### getNextSibling

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Node getNextSibling ()
```

<br />

Get the child node before which the result nodes will be inserted.

If no node was set via `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20org.w3c.dom.Node)`, `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20org.w3c.dom.Node,%20java.lang.String)` or `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#setNextSibling(org.w3c.dom.Node)`, then `null` will be returned.

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/w3c/dom/Node` | The child node before which the result nodes will be inserted. <br /> |

### getNode

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Node getNode ()
```

<br />

Get the node that will contain the result DOM tree.

If no node was set via `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node)`, `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20java.lang.String)`, `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20org.w3c.dom.Node)`, `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20org.w3c.dom.Node,%20java.lang.String)` or `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#setNode(org.w3c.dom.Node)`, then the node will be set by the transformation, and may be obtained from this method once the transformation is complete. Calling this method before the transformation will return `null`.

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/w3c/dom/Node` | The node to which the transformation will be appended. <br /> |

### getSystemId

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSystemId ()
```

<br />

Get the System Identifier.

If no System ID was set via `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20java.lang.String)`, `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node,%20org.w3c.dom.Node,%20java.lang.String)` or `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#setSystemId(java.lang.String)`, then `null` will be returned.

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The system identifier. <br /> |

### setNextSibling

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setNextSibling (Node nextSibling)
```

<br />

Set the child node before which the result nodes will be inserted.

Use `nextSibling` to specify the child node before which the result nodes should be inserted. If `nextSibling` is not a descendant of `node`, then an `IllegalArgumentException` is thrown. If `node` is `null` and `nextSibling` is not `null`, then an `IllegalStateException` is thrown. If `nextSibling` is `null`, then the behavior is the same as calling `https://developer.android.com/reference/javax/xml/transform/dom/DOMResult#DOMResult(org.w3c.dom.Node)`, i.e. append the result nodes as the last child of the specified `node`.

<br />

<br />

| Parameters ||
|---|---|
| `nextSibling` | `Node`: The child node before which the result nodes will be inserted. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | If `nextSibling` is not a descendant of `node`. |
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If `node` is `null` and `nextSibling` is not `null`. |

### setNode

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setNode (Node node)
```

<br />

Set the node that will contain the result DOM tree.

<br />

In practice, the node should be a `https://developer.android.com/reference/org/w3c/dom/Document` node, a `https://developer.android.com/reference/org/w3c/dom/DocumentFragment` node, or a `https://developer.android.com/reference/org/w3c/dom/Element` node. In other words, a node that accepts children.

An `IllegalStateException` is thrown if `nextSibling` is not `null` and `node` is not a parent of `nextSibling`. An `IllegalStateException` is thrown if `node` is `null` and `nextSibling` is not `null`.

<br />

<br />

| Parameters ||
|---|---|
| `node` | `Node`: The node to which the transformation will be appended. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If `nextSibling` is not `null` and `nextSibling` is not a child of `node`. |
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If `node` is `null` and `nextSibling` is not `null`. |

### setSystemId

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSystemId (String systemId)
```

<br />

Set the systemId that may be used in association with the node.

<br />

<br />

| Parameters ||
|---|---|
| `systemId` | `String`: The system identifier as a URI string. <br /> |