| Platform | Since |
|---|---|
| Android | 0.9 |
| iPhone | 0.9 |
| iPad | 0.9 |
An interface extending Titanium.XML.Node with a set of attributes and methods for accessing character data in the DOM. This conforms to the DOM Level 2 defintion of a DOM CharacterData. Unlike the DOM, for reasons of compatibility with the javascript engine, text is represented by UTF-8 instead of UTF-16.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| appendChild |
Appends the node |
| appendData |
Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the string specified. Throws an exception if this node is readonly. |
| cloneNode |
Returns a duplicate of this node |
| deleteData |
Remove a range of characters from the node. Upon success, data and length reflect the change. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getAttributes |
Gets the value of the attributes property. |
| getChildNodes |
Gets the value of the childNodes property. |
| getData |
Gets the value of the data property. |
| getFirstChild |
Gets the value of the firstChild property. |
| getLastChild |
Gets the value of the lastChild property. |
| getLength |
Gets the value of the length property. |
| getLocalName |
Gets the value of the localName property. |
| getNamespaceURI |
Gets the value of the namespaceURI property. |
| getNextSibling |
Gets the value of the nextSibling property. |
| getNodeName |
Gets the value of the nodeName property. |
| getNodeType |
Gets the value of the nodeType property. |
| getNodeValue |
Gets the value of the nodeValue property. |
| getOwnerDocument |
Gets the value of the ownerDocument property. |
| getParentNode |
Gets the value of the parentNode property. |
| getPrefix |
Gets the value of the prefix property. |
| getPreviousSibling |
Gets the value of the previousSibling property. |
| hasAttributes |
Whether or not this node has attributes |
| hasChildNodes |
Whether or not this node has child nodes |
| insertBefore | |
| insertData |
Insert a string at the specified offset. Throws an exception if this node is readonly, if offset is negative, or if offset is beyond the data's length. |
| isSupported |
Tests whether the DOM implementation supports a specific feature |
| normalize |
Normalizes text and attribute nodes in this node's child hierarchy |
| removeChild |
Removes a child node from this node |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| replaceChild |
Replaces the node |
| replaceData |
Replace the characters starting at the specified offset with the specified string. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. |
| setData |
Sets the value of the data property. |
| setLocalName |
Sets the value of the localName property. |
| substringData |
Extracts a range of data from the node. Throws an exception if offset is negative, offset is beyond the data's length, or if count is negative. |
| Name | Type | Summary |
|---|---|---|
| ATTRIBUTE_NODE | Number |
The value of |
| CDATA_SECTION_NODE | Number |
The value of |
| COMMENT_NODE | Number |
The value of |
| DOCUMENT_FRAGMENT_NODE | Number |
The value of |
| DOCUMENT_NODE | Number |
The value of |
| DOCUMENT_TYPE_NODE | Number |
The value of |
| ELEMENT_NODE | Number |
The value of |
| ENTITY_NODE | Number |
The value of |
| ENTITY_REFERENCE_NODE | Number |
The value of |
| NOTATION_NODE | Number |
The value of |
| PROCESSING_INSTRUCTION_NODE | Number |
The value of |
| TEXT_NODE | Number |
The value of |
| attributes | Titanium.XML.NamedNodeMap |
A map of this node's attributes read-only |
| childNodes | Titanium.XML.NodeList |
A |
| data | String |
The character data of the node that implements this interface. Throws an exception during setting if this node is readonly. |
| firstChild | Titanium.XML.Node |
This node's first child read-only |
| lastChild | Titanium.XML.Node |
This node's last child read-only |
| length | Number |
The number of characters that are available through data and the substringData method. This may have the value zero, i.e., |
| localName | String |
The local part of the qualified name of this node |
| namespaceURI | String |
The namespace URI of this node read-only |
| nextSibling | Titanium.XML.Node |
This node's next sibling read-only |
| nodeName | String |
The name of this node read-only |
| nodeType | Number |
This node's type. One of |
| nodeValue | String |
The content (value) of this node read-only |
| ownerDocument | Titanium.XML.Document |
This node's owning Document read-only |
| parentNode | Titanium.XML.Node |
This node's parent node read-only |
| prefix | String |
The namespace prefix of this node read-only |
| previousSibling | Titanium.XML.Node |
This node's previous sibling read-only |