# Titanium.XML.Text

> Represents the textual content of an [Titanium.XML.Element](https://titaniumsdk.com/docs/sdk/Titanium.XML.Element.md) or [Titanium.XML.Attr](https://titaniumsdk.com/docs/sdk/Titanium.XML.Attr.md) Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1312295772) on Android and iOS.

- Source: https://titaniumsdk.com/docs/sdk/13.3.1/Titanium.XML.Text
- Titanium SDK version: 13.3.1
- Kind: proxy
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK Android 0.9, iPhone 0.9, iPad 0.9, macOS 9.2.0
- Extends: Titanium.XML.CharacterData
- Inheritance: Titanium.XML.CharacterData > Titanium.XML.Node > Titanium.Proxy

## Properties

### textContent

- Type: String
- Platforms: Android, iPhone, iPad, macOS
- Permission: read-only

Content (value) of all text nodes within this node.

On Android, `textContent` is supported on [Element](https://titaniumsdk.com/docs/sdk/Titanium.XML.Element.md) and
[Text](https://titaniumsdk.com/docs/sdk/Titanium.XML.Text.md) nodes only.

## Methods

### splitText

- Platforms: Android, iPhone, iPad, macOS

Breaks this node into two nodes at the specified by offset, and returns a new node of the same type, which contains all the content at and after the offset point. Throws an exception if the specified offset is negative or if this node is read only.

Parameters:

- `offset` (Number): The offset at which to split, starting from 0.

Returns: Titanium.XML.Text - The new node, of the same type as this node

## Inherited members

50 members are inherited. Each is documented on the type that declares it.

- [Titanium.Proxy](https://titaniumsdk.com/docs/sdk/13.3.1/Titanium.Proxy.md): `addEventListener`, `apiName`, `applyProperties`, `bubbleParent`, `fireEvent`, `lifecycleContainer`, `removeEventListener`
- [Titanium.XML.CharacterData](https://titaniumsdk.com/docs/sdk/13.3.1/Titanium.XML.CharacterData.md): `appendData`, `data`, `deleteData`, `insertData`, `length`, `replaceData`, `substringData`
- [Titanium.XML.Node](https://titaniumsdk.com/docs/sdk/13.3.1/Titanium.XML.Node.md): `ATTRIBUTE_NODE`, `CDATA_SECTION_NODE`, `COMMENT_NODE`, `DOCUMENT_FRAGMENT_NODE`, `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `ELEMENT_NODE`, `ENTITY_NODE`, `ENTITY_REFERENCE_NODE`, `NOTATION_NODE`, `PROCESSING_INSTRUCTION_NODE`, `TEXT_NODE`, `appendChild`, `attributes`, `childNodes`, `cloneNode`, `firstChild`, `hasAttributes`, `hasChildNodes`, `insertBefore`, `isSupported`, `lastChild`, `localName`, `namespaceURI`, `nextSibling`, `nodeName`, `nodeType`, `nodeValue`, `normalize`, `ownerDocument`, `parentNode`, `prefix`, `previousSibling`, `removeChild`, `replaceChild`, `text`

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

