# Titanium.XML.Text
Represents the textual content of an Titanium.XML.Element or Titanium.XML.Attr Implements the DOM Level 2 API on Android and iOS.
# Properties
# textContent READONLY
textContent :String
Content (value) of all text nodes within this node.
On Android, textContent
is supported on Titanium.XML.Element and
Titanium.XML.Text nodes only.
# Methods
# splitText
splitText(offset) → Titanium.XML.Text
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
Name | Type | Description |
---|---|---|
offset | Number | The offset at which to split, starting from 0. |
Returns
The new node, of the same type as this node
- Type
- Titanium.XML.Text