CXMLElement Class Reference

The CXMLElement class defines an XML element in the TouchXML library.

Inherits from CXMLNode*

Instance Methods

elementsForName:

Returns an array of elements by name.

- (NSArray *)elementsForName:(NSString *)name

Parameters

name
The name of the elements to retrieve.

attributes

Returns an array of the element's attributes.

- (NSArray *)attributes

attributeForName:

Retrieves an attribute by name.

- (CXMLNode *)attributeForName:(NSString *)name

Parameters

name
The name of the attribute to retrieve.

_XMLStringWithOptions:appendingToString:

Outputs the XML string of the element.

- (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str

Parameters

options
Declares options for outputting the XML.
str
The string to which the XML is appended.