You are reading 13.0.1. See this page in 13.4.1.
Titanium.XML.NamedNodeMap
Extends Titanium.Proxy
A key-value paired map that maps String objects to Titanium.XML.Node objects. Implements the DOM Level 2 API on Android and iOS.
Properties 4
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
The number of nodes in the map. The valid range of child node indices is 0-length-1, inclusive.
Inherited from Titanium.Proxy
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
Methods 11
Inherited from Titanium.Proxy
Adds the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to invoke when the event is fired. 4 fields
|
applyProperties
since 3.0.0Inherited from Titanium.Proxy
Applies the properties to the proxy.
| Parameters | Type | Description |
|---|---|---|
| props | Dictionary | A dictionary of properties to apply. |
Inherited from Titanium.Proxy
Fires a synthesized event to any registered listeners.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| event? | Dictionary | A dictionary of keys and values to add to the Titanium.Event object sent to the listeners. |
Retrieves a node specified by name.
| Parameters | Type | Description |
|---|---|---|
| name | String | The name of the node to retrieve. |
Retrieves a node specified by name and namespace. Returns null if no matching node is in the map.
| Parameters | Type | Description |
|---|---|---|
| namespaceURI | String | The namespace URI of the node to retrieve. |
| localName | String | The local name of the node within the namespace to retrieve. |
Retrieves the node at the specified index of the map. Note that NamedNodeMaps are not ordered.
| Parameters | Type | Description |
|---|---|---|
| index | Number | The index of the node to retrieve. |
Inherited from Titanium.Proxy
Removes the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to remove. Must be the same function passed to 4 fields
|
Removes a node from the map specified by name. When this map contains attributes attached to an element, if the removed attribtue is known to have a default, it is replaced with that value.
| Parameters | Type | Description |
|---|---|---|
| name | String | The name of the node to remove. |
Removes a node from the map specified by local name and namespace URI. When this map contains attributes attached to an element, if the removed attribtue is known to have a default, it is replaced with that value. Returns the node removed from the map, or null if there is no corresponding node.
| Parameters | Type | Description |
|---|---|---|
| namespaceURI | String | The namespace URI of the node to remove. |
| localName | String | The local name of the node within the namespace to remove. |
Adds a node using its nodeName attribute. If a node with that name is already present, it is replaced. Throws an exception if the argument is from a different document, the map is read-only, or the argument is an attribute of another element.
| Parameters | Type | Description |
|---|---|---|
| node | Titanium.XML.Node | The node to insert into the map. |
Adds a node using its namespaceURI and localName attributes. If a node with that name is already present, it is replaced. Throws an exception if the argument is from a different document, the map is read-only, or the argument is an attribute of another element.
| Parameters | Type | Description |
|---|---|---|
| node | Titanium.XML.Node | The node to insert into the map. |