EntityRef

A representation of an XML `EntityReference` node.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/xml-service/entity-ref#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/entity-ref#getName()` | `String` | Gets the name of the `EntityReference` node. |
| `https://developers.google.com/apps-script/reference/xml-service/entity-ref#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/entity-ref#getPublicId()` | `String|null` | Gets the public ID of the `EntityReference` node. |
| `https://developers.google.com/apps-script/reference/xml-service/entity-ref#getSystemId()` | `String|null` | Gets the system ID of the `EntityReference` node. |
| `https://developers.google.com/apps-script/reference/xml-service/entity-ref#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. |
| `https://developers.google.com/apps-script/reference/xml-service/entity-ref#setName(String)` | `https://developers.google.com/apps-script/reference/xml-service/entity-ref#` | Sets the name of the `EntityReference` node. |
| `https://developers.google.com/apps-script/reference/xml-service/entity-ref#setPublicId(String)` | `https://developers.google.com/apps-script/reference/xml-service/entity-ref#` | Sets the public ID of the `EntityReference` node. |
| `https://developers.google.com/apps-script/reference/xml-service/entity-ref#setSystemId(String)` | `https://developers.google.com/apps-script/reference/xml-service/entity-ref#` | Sets the system ID of the `EntityReference` node. |

## 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.

*** ** * ** ***

### `getName()`

Gets the name of the `EntityReference` node.

#### Return


`String` --- The name of the `EntityReference` 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.

*** ** * ** ***

### `getPublicId()`

Gets the public ID of the `EntityReference` node. If the node does not have a public ID,
this method returns `null`.

#### Return


`String|null` --- The public ID of the `EntityReference` node, or `null` if it has none.

*** ** * ** ***

### `getSystemId()`

Gets the system ID of the `EntityReference` node. If the node does not have a system ID,
this method returns `null`.

#### Return


`String|null` --- The system ID of the `EntityReference` node, or `null` if it has none.

*** ** * ** ***

### `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.

*** ** * ** ***

### `setName(name)`

Sets the name of the `EntityReference` node.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `name` | `String` | The name to set. |

#### Return


`https://developers.google.com/apps-script/reference/xml-service/entity-ref#` --- The `EntityReference` node, for chaining.

*** ** * ** ***

### `setPublicId(id)`

Sets the public ID of the `EntityReference` node.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `id` | `String` | The public ID to set. |

#### Return


`https://developers.google.com/apps-script/reference/xml-service/entity-ref#` --- The `EntityReference` node, for chaining.

*** ** * ** ***

### `setSystemId(id)`

Sets the system ID of the `EntityReference` node.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `id` | `String` | The system ID to set. |

#### Return


`https://developers.google.com/apps-script/reference/xml-service/entity-ref#` --- The `EntityReference` node, for chaining.