You are reading 12.7.0. See this page in 13.4.1.
Titanium.XML
Extends Titanium.ModuleTitanium.Proxy
The top level XML module. The XML module is used for parsing and processing XML-based content.
The API for this module is based on the W3C DOM specification.
Android and iOS implement the DOM Level 2 specification with some non-standard extensions, which are documented in the appropriate places.
Both iOS and Android lack DTD support.
Properties 3
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
Inherited from Titanium.Proxy
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
Methods 6
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. |
Parses an XML string into a Titanium.XML.Document object.
Throws an exception if the string can't be parsed into a valid document.
| Parameters | Type | Description |
|---|---|---|
| xml | String | XML content as a string. |
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
|
Serializes a Node object into a string.
| Parameters | Type | Description |
|---|---|---|
| node | Titanium.XML.Node | XML Node to serialize. |