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

Availability
0.9
0.9
9.2.0
4.1.0

# Properties

# textContent READONLY

Availability
0.9
0.9
9.2.0
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

Availability
0.9
0.9
9.2.0
4.1.0
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