ProcessingInstruction

A representation of an XML `ProcessingInstruction` node.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/xml-service/processing-instruction#detach()` | `https://developers.google.com/apps-script/reference/xml-service/content|null` | Detaches the node from its parent `https://developers.google.com/apps-script/reference/xml-service/element` node. |
| `https://developers.google.com/apps-script/reference/xml-service/processing-instruction#getData()` | `String` | Gets the raw data for every instruction in the `ProcessingInstruction` node. |
| `https://developers.google.com/apps-script/reference/xml-service/processing-instruction#getParentElement()` | `https://developers.google.com/apps-script/reference/xml-service/element|null` | Gets the node's parent `https://developers.google.com/apps-script/reference/xml-service/element` node. |
| `https://developers.google.com/apps-script/reference/xml-service/processing-instruction#getTarget()` | `String` | Gets the target for the `ProcessingInstruction` node. |
| `https://developers.google.com/apps-script/reference/xml-service/processing-instruction#getValue()` | `String` | Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document. |

## Detailed documentation

### `detach()`

Detaches the node from its parent `https://developers.google.com/apps-script/reference/xml-service/element` node. If the node does not have a parent,
this method has no effect.

#### Return


`https://developers.google.com/apps-script/reference/xml-service/content|null` --- The detached node.

*** ** * ** ***

### `getData()`

Gets the raw data for every instruction in the `ProcessingInstruction` node.

#### Return


`String` --- The raw data for every instruction in the `ProcessingInstruction` node.

*** ** * ** ***

### `getParentElement()`

Gets the node's parent `https://developers.google.com/apps-script/reference/xml-service/element` node. If the node does not have a parent, this method
returns `null`.

#### Return


`https://developers.google.com/apps-script/reference/xml-service/element|null` --- The parent `Element` node.

*** ** * ** ***

### `getTarget()`

Gets the target for the `ProcessingInstruction` node.

#### Return


`String` --- The target for the `ProcessingInstruction` node.

*** ** * ** ***

### `getValue()`

Gets the text value of all nodes that are direct or indirect children of the node, in the order
they appear in the document.

#### Return


`String` --- The text value of all nodes that are direct or indirect children of the node.