# Titanium.XML
The top level XML module. The XML module is used for parsing and processing XML-based content.
# Overview
The API for this module is based on the W3C DOM specification.
Android and iOS implement the DOM Level 2 (opens new window) specification with some non-standard extensions, which are documented in the appropriate places.
Both iOS and Android lack DTD support.
# Methods
# parseString
parseString(xml) → Titanium.XML.Document
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
Name | Type | Description |
---|---|---|
xml | String | XML content as a string. |
Returns
# serializeToString
serializeToString(node) → String
Serializes a Titanium.XML.Node object into a string.
Parameters
Name | Type | Description |
---|---|---|
node | Titanium.XML.Node | XML Titanium.XML.Node to serialize. |
Returns
- Type
- String