Public Member Functions | |
Constructor / Destructor | |
| CP_XMLDocNode (const XML_Char *inNodeName) | |
| Constructor. | |
| CP_XMLDocNode (CFXMLTreeRef inTreeRef) | |
| virtual | ~CP_XMLDocNode () |
Child Nodes | |
| CP_XMLDocNode * | AddChildNode (const XML_Char *inNodeName) |
| bool | HasChildren () |
| UInt32 | GetChildNodeCount () |
| CP_XMLDocNode * | GetNthChildNode (UInt32 inIndex) |
| CP_DocNodes_Array * | GetChildNodeList () |
| CP_XMLDocNode * | AddChildNode (CFXMLTreeRef inTreeRef) |
Getters | |
| CP_E_XMLDocNodeType | GetNodeType () |
| CP_String | GetNodeName () |
| bool | HasCharData () |
| CP_String | GetCharData () |
| CP_XMLAttributes | GetAttributes () |
Setters | |
| void | SetNodeType (CP_E_XMLDocNodeType inType) |
| void | SetCharData (const CP_String &inCharData) |
| void | SetAttributes (CP_XMLAttributes &inAttributes) |
Protected Attributes | |
| CP_E_XMLDocNodeType | fNodeType |
| CP_String | fNodeName |
| CP_String | fCharData |
| CP_XMLAttributes | fAttributes |
| CP_DocNodes_Array * | fChildNodes |
|
|
Constructor.
|
|
|
Constructor. Constructs this node from a CFXMLTreeRef.
|
|
|
Destructor.
|
|
|
Adds a new child inNode to this inNode, which then becomes the parent of the new child inNode.
|
|
|
Returns true if this inNode has any child nodes.
|
|
|
Returns the number of child nodes for this inNode.
|
|
|
Returns the Nth child inNode of this parent inNode. inIndex should be between 1 and the number of child nodes of this parent.
|
|
|
Returns a list of the child nodes.
|
|
|
Add the child nodes from the passed in CFXMLTreeRef to this node.
|
|
|
Returns the type of node.
|
|
|
Returns the name of this node.
|
|
|
Returns true if this node contains character data.
|
|
|
Returns the character data for the node.
|
|
|
Returns a CP_XMLAttributes object for the attributes, if any, for this node.
|
|
|
Sets the type of node this is.
|
|
|
Sets the character data for the node from the passed in CP_String.
|
|
|
Sets the attributes for this node.
|
|
|
|
|
|
Type of node. |
|
|
The name of the node as it appears in the XML file. |
|
|
Character data associated with this node. |
|
|
Any attributes for this node. |
1.4.0