Identify()
MarkInUse()
ShallowClone() const
ShallowEqual() const
operator=()
Parse()
SetError()
PushDepth()
PopDepth()
CreateUnlinkedNode()
ToDocument()
ToDocument() const
Parse()
LoadFile()
Load an XML file from disk. Returns XML_SUCCESS (0) on success, or an errorID.
LoadFile()
Load an XML file from disk. Returns XML_SUCCESS (0) on success, or an errorID.
SaveFile()
Save the XML file to disk. Returns XML_SUCCESS (0) on success, or an errorID.
SaveFile()
Save the XML file to disk. Returns XML_SUCCESS (0) on success, or an errorID.
ProcessEntities() const
WhitespaceMode() const
HasBOM() const
Returns true if this document has a leading Byte Order Mark of UTF8.
SetBOM()
Sets whether to write the BOM when writing the file.
RootElement()
Return the root element of DOM. Equivalent to FirstChildElement(). To get the first node, use FirstChild().
RootElement() const
Print() const
Print the Document. If the Printer is not provided, it will print to stdout. If you provide Printer, this can print to a file: @verbatim XMLPrinter printer( fp ); doc.Print( &printer ); @endverbatim Or you can use a printer to print to memory: @verbatim XMLPrinter printer; doc.Print( &printer ); // printer.CStr() has a const char* to the XML @endverbatim.
Accept() const
NewElement()
Create a new Element associated with this Document. The memory for the Element is managed by the Document.
Create a new Comment associated with this Document. The memory for the Comment is managed by the Document.
NewText()
Create a new Text associated with this Document. The memory for the Text is managed by the Document.
NewDeclaration()
Create a new Declaration associated with this Document. The memory for the object is managed by the Document. If the 'text' param is null, the standard declaration is used.: @verbatim @endverbatim.
NewUnknown()
Create a new Unknown associated with this Document. The memory for the object is managed by the Document.
DeleteNode()
Delete a node associated with this document. It will be unlinked from the DOM.
ClearError()
Clears the error flags.
Error() const
Return true if there was an error parsing the document.
ErrorID() const
Return the errorID.
ErrorName() const
ErrorIDToName()
ErrorStr() const
Returns a "long form" error description. A hopefully helpful diagnostic with location, line number, and/or additional info.
PrintError() const
A (trivial) utility function that prints the ErrorStr() to stdout.
ErrorLineNum() const
Return the line where the error occurred, or zero if unknown.
Clear()
Clear the document, resetting it to the initial state.
DeepCopy() const
Copies this document to a target document. The target will be completely cleared before the copy. If you want to copy a sub-tree, see XMLNode::DeepClone(). NOTE: that the 'target' must be non-null.