CXMLDocument Class Reference
The CXMLDocument class defines an XML document in the TouchXML library.
Inherits from CXMLNode*
Instance Methods
initWithXMLString:options:error:
Initializes an XML document with the contents of a string.
- (id)initWithXMLString:(NSString *)inString options:(NSUInteger)inOptions error:(NSError **)outError
Parameters
- inString
- The string parsed to create the document.
- inOptions
- The options used for parsing the document.
- error
- Outputs any errors incurred during parsing.
initWithContentsOfURL:options:error:
- (id)initWithContentsOfURL:(NSURL *)inURL options:(NSUInteger)inOptions error:(NSError **)outError
Parameters
- inURL
- The NSURL* from which the XML document is loaded.
- inOptions
- The options used for parsing the document.
- error
- Outputs any errors incurred during parsing.
initWithData:options:error:
- (id)initWithData:(NSData *)inData options:(NSUInteger)inOptions error:(NSError **)outError
- inData
- The NSData* from which the XML document is loaded.
- inOptions
- The options used for parsing the document.
- error
- Outputs any errors incurred during parsing.
rootElement
The root element of the document.
- (CXMLElement *)rootElement