|
Public Types |
| enum | NodeType {
DOCUMENT,
ELEMENT,
COMMENT,
UNKNOWN,
TEXT,
DECLARATION,
TYPECOUNT
} |
Public Member Functions |
| const char * | Value () const |
| void | SetValue (const char *_value) |
|
void | Clear () |
| | Delete all the children of this node. Does not affect 'this'.
|
|
TiXmlNode * | Parent () |
| | One step up the DOM.
|
|
const TiXmlNode * | Parent () const |
|
const TiXmlNode * | FirstChild () const |
| | The first child of this node. Will be null if there are no children.
|
|
TiXmlNode * | FirstChild () |
|
const TiXmlNode * | FirstChild (const char *value) const |
| | The first child of this node with the matching 'value'. Will be null if none found.
|
|
TiXmlNode * | FirstChild (const char *value) |
| | The first child of this node with the matching 'value'. Will be null if none found.
|
|
const TiXmlNode * | LastChild () const |
|
TiXmlNode * | LastChild () |
| | The last child of this node. Will be null if there are no children.
|
|
const TiXmlNode * | LastChild (const char *value) const |
|
TiXmlNode * | LastChild (const char *value) |
| | The last child of this node matching 'value'. Will be null if there are no children.
|
| const TiXmlNode * | IterateChildren (TiXmlNode *previous) const |
|
TiXmlNode * | IterateChildren (TiXmlNode *previous) |
|
const TiXmlNode * | IterateChildren (const char *value, TiXmlNode *previous) const |
| | This flavor of IterateChildren searches for children with a particular 'value'.
|
|
TiXmlNode * | IterateChildren (const char *value, TiXmlNode *previous) |
| TiXmlNode * | InsertEndChild (const TiXmlNode &addThis) |
| TiXmlNode * | LinkEndChild (TiXmlNode *addThis) |
| TiXmlNode * | InsertBeforeChild (TiXmlNode *beforeThis, const TiXmlNode &addThis) |
| TiXmlNode * | InsertAfterChild (TiXmlNode *afterThis, const TiXmlNode &addThis) |
| TiXmlNode * | ReplaceChild (TiXmlNode *replaceThis, const TiXmlNode &withThis) |
|
bool | RemoveChild (TiXmlNode *removeThis) |
| | Delete a child of this node.
|
|
const TiXmlNode * | PreviousSibling () const |
| | Navigate to a sibling node.
|
|
TiXmlNode * | PreviousSibling () |
|
const TiXmlNode * | PreviousSibling (const char *) const |
| | Navigate to a sibling node.
|
|
TiXmlNode * | PreviousSibling (const char *) |
|
const TiXmlNode * | NextSibling () const |
| | Navigate to a sibling node.
|
|
TiXmlNode * | NextSibling () |
|
const TiXmlNode * | NextSibling (const char *) const |
| | Navigate to a sibling node with the given 'value'.
|
|
TiXmlNode * | NextSibling (const char *) |
| const TiXmlElement * | NextSiblingElement () const |
|
TiXmlElement * | NextSiblingElement () |
| const TiXmlElement * | NextSiblingElement (const char *) const |
|
TiXmlElement * | NextSiblingElement (const char *) |
|
const TiXmlElement * | FirstChildElement () const |
| | Convenience function to get through elements.
|
|
TiXmlElement * | FirstChildElement () |
|
const TiXmlElement * | FirstChildElement (const char *value) const |
| | Convenience function to get through elements.
|
|
TiXmlElement * | FirstChildElement (const char *value) |
| virtual int | Type () const |
| const TiXmlDocument * | GetDocument () const |
|
TiXmlDocument * | GetDocument () |
|
bool | NoChildren () const |
| | Returns true if this node has no children.
|
|
const TiXmlDocument * | ToDocument () const |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
const TiXmlElement * | ToElement () const |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
const TiXmlComment * | ToComment () const |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
const TiXmlUnknown * | ToUnknown () const |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
const TiXmlText * | ToText () const |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
const TiXmlDeclaration * | ToDeclaration () const |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
TiXmlDocument * | ToDocument () |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
TiXmlElement * | ToElement () |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
TiXmlComment * | ToComment () |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
TiXmlUnknown * | ToUnknown () |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
TiXmlText * | ToText () |
| | Cast to a more defined type. Will return null not of the requested type.
|
|
TiXmlDeclaration * | ToDeclaration () |
| | Cast to a more defined type. Will return null not of the requested type.
|
| virtual TiXmlNode * | Clone () const =0 |
Protected Member Functions |
|
| TiXmlNode (NodeType _type) |
|
void | CopyTo (TiXmlNode *target) const |
|
TiXmlNode * | Identify (const char *start, TiXmlEncoding encoding) |
|
const TIXML_STRING & | SValue () const |
Protected Attributes |
|
TiXmlNode * | parent |
|
NodeType | type |
|
TiXmlNode * | firstChild |
|
TiXmlNode * | lastChild |
|
TIXML_STRING | value |
|
TiXmlNode * | prev |
|
TiXmlNode * | next |
Friends |
|
class | TiXmlDocument |
|
class | TiXmlElement |
|
TIXML_OSTREAM & | operator<< (TIXML_OSTREAM &out, const TiXmlNode &base) |