Class XMLPrinter

#include <Geode/cocos/support/tinyxml2/tinyxml2.h>
classXMLPrinter:publictinyxml2::XMLVisitor{ ... }

Printing functionality. The XMLPrinter gives you more options than the XMLDocument::Print() method. It can: -# Print to memory. -# Print to a file you provide. -# Print XML without a XMLDocument. Print to Memory

Examples0
Public static methods0
Public member functions27
voidPushHeader(
boolwriteBOM
,
boolwriteDeclaration
)

If streaming, write the BOM and declaration.

voidOpenElement()

If streaming, start writing an element. The element must be closed with CloseElement()

voidPushAttribute(,)

/// If streaming, add an attribute to an open element.

voidPushAttribute(,
intvalue
)
No description provided
voidPushAttribute(,
uintvalue
)
No description provided
voidPushAttribute(,
boolvalue
)
No description provided
voidPushAttribute(,
doublevalue
)
No description provided
voidCloseElement()

/// If streaming, close the Element.

voidPushText(,
boolcdata
)

/// Add a text node.

voidPushText(
intvalue
)

/// Add a text node from an integer.

voidPushText(
uintvalue
)

/// Add a text node from an unsigned.

voidPushText(
boolvalue
)

/// Add a text node from a bool.

voidPushText(
floatvalue
)

/// Add a text node from a float.

voidPushText(
doublevalue
)

/// Add a text node from a double.

voidPushComment(
charconst*comment
)

/// Add a comment

voidPushDeclaration()
No description provided
voidPushUnknown()
No description provided
virtualboolVisitEnter()
No description provided
virtualboolVisitExit()
No description provided
virtualboolVisitEnter(,)
No description provided
virtualboolVisitExit()
No description provided
virtualboolVisit()
No description provided
virtualboolVisit()
No description provided
virtualboolVisit()
No description provided
virtualboolVisit()
No description provided
charconst*CStr()const

If in print to memory mode, return a pointer to the XML file in memory.

intCStrSize()const

If in print to memory mode, return the size of the XML file in memory. (Note the size returned includes the terminating null.)

Fields0
Protected member functions0
Protected fields0