Class XMLHandle

#include <Geode/cocos/support/tinyxml2/tinyxml2.h>
classXMLHandle{ ... }

A XMLHandle is a class that wraps a node pointer with null checks; this is an incredibly useful thing. Note that XMLHandle is not part of the TinyXML DOM structure. It is a separate utility class. Take an example:

Examples0
Public static methods0
Public member functions14
tinyxml2::XMLHandle&operator=()

/// Assignment

tinyxml2::XMLHandleFirstChild()

/// Get the first child of this handle.

tinyxml2::XMLHandleFirstChildElement()

/// Get the first child element of this handle.

tinyxml2::XMLHandleLastChild()

/// Get the last child of this handle.

tinyxml2::XMLHandleLastChildElement()

/// Get the last child element of this handle.

tinyxml2::XMLHandlePreviousSibling()

/// Get the previous sibling of this handle.

tinyxml2::XMLHandlePreviousSiblingElement()

/// Get the previous sibling element of this handle.

tinyxml2::XMLHandleNextSibling()

/// Get the next sibling of this handle.

tinyxml2::XMLHandleNextSiblingElement()

/// Get the next sibling element of this handle.

tinyxml2::XMLNode*ToNode()

/// Safe cast to XMLNode. This can return null.

tinyxml2::XMLElement*ToElement()

/// Safe cast to XMLElement. This can return null.

tinyxml2::XMLText*ToText()

/// Safe cast to XMLText. This can return null.

tinyxml2::XMLUnknown*ToUnknown()

/// Safe cast to XMLUnknown. This can return null.

tinyxml2::XMLDeclaration*ToDeclaration()

/// Safe cast to XMLDeclaration. This can return null.

Fields0
Protected member functions0
Protected fields0