The CXMLNode class defines an XML node in the TouchXML library.
Inherits from NSObject*
Defines the type of the XML node.
- (CXMLNodeKind)kind
The name of the node.
- (NSString *)name
The string value of the node's contents.
- (NSString *)stringValue
The index or position of the node in relationship to it's siblings.
- (NSUInteger)index;
The level of the node within the XML document.
- (NSUInteger)level
References the root document of the node.
- (CXMLDocument *)rootDocument
The parent of the node.
- (CXMLNode *)parent
The number of children that the node contains.
- (NSUInteger)childCount
AN array of the node's children.
- (NSArray *)children
Retrieves a child node at the given index.
- (CXMLNode *)childAtIndex:(NSUInteger)index
The node's previous sibling.
- (CXMLNode *)previousSibling
The node's next sibling.
- (CXMLNode *)nextSibling
The textual description of the node.
- (NSString *)description
The contents of the node as XML.
- (NSString *)XMLString
The contents of the node as XML with options.
- (NSString *)XMLStringWithOptions:(NSUInteger)options
Retrieves an array of nodes based on an XPath query.
- (NSArray *)nodesForXPath:(NSString *)xpath error:(NSError **)error
Retrieves an array of nodes based on an XPath query.
- (NSArray *)nodesForXPath:(NSString *)xpath namespaceMappings:(NSDictionary *)inNamespaceMappings error:(NSError **)error
The contents of the node as XML with options.
- (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str
Defines an enumeration of the types of nodes.
typedef enum { CXMLInvalidKind, CXMLElementKind, CXMLAttributeKind, CXMLTextKind, CXMLProcessingInstructionKind, CXMLCommentKind, CXMLNotationDeclarationKind, CXMLDTDKind, CXMLElementDeclarationKind, CXMLAttributeDeclarationKind, CXMLEntityDeclarationKind, CXMLNamespaceKind, } CXMLNodeKind;