| Platform | Since |
|---|---|
| Android | 0.9 |
| iPhone | 0.9 |
| iPad | 0.9 |
The DOM Document returned from Titanium.XML.parseString or Titanium.XML.parse. Implements the DOM Level 2 API.
As of version 3.1, Android still does not truly support DTDs. A document with a DTD can be parsed, however it is not validated, none of its default attributes will automatically be put into the tree, etc. Google is aware of the issue.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| appendChild |
Appends the node |
| cloneNode |
Returns a duplicate of this node |
| createAttribute |
Creates an attribute with the given name. |
| createAttributeNS |
Creates an attribute with the given name and namespace. |
| createCDATASection |
Creates and returns a |
| createComment |
Creates a |
| createDocumentFragment |
Creates an empty |
| createElement |
Creates an element with the given tag name. |
| createElementNS |
Create a new element with the given namespace and name. |
| createEntityReference |
Creates an |
| createProcessingInstruction |
Creates a processing instruction for inserting into the DOM tree. |
| createTextNode |
Creates a text node. |
| 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. |
| getDoctype |
Gets the value of the doctype property. |
| getDocumentElement |
Gets the value of the documentElement property. |
| getElementById |
Returns an |
| getElementsByTagName |
Return a node list of elements in the document which have the given tag. |
| getElementsByTagNameNS |
Return a node list of elements in the document which belong to the given namespace and have the given tag name. |
| getFirstChild |
Gets the value of the firstChild property. |
| getImplementation |
Gets the value of the implementation property. |
| getLastChild |
Gets the value of the lastChild 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 |
| importNode |
Imports a node from another document to this document, without altering or removing the source node from the original document; this method creates a new copy of the source node. The returned node has no parent. |
| insertBefore | |
| 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 |
| setLocalName |
Sets the value of the localName property. |
| 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 |
| doctype | Titanium.XML.DocumentType |
An interface to the list of entities that are defined for the document, such as via a Document Type Definition (DTD). See note about Android and DTDs. read-only |
| documentElement | Titanium.XML.Element |
the root element in the document. read-only |
| firstChild | Titanium.XML.Node |
This node's first child read-only |
| implementation | Titanium.XML.DOMImplementation |
the DOMImplementation that handles this document read-only |
| lastChild | Titanium.XML.Node |
This node's last child read-only |
| 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 |