#include <tinyxml.h>
Inheritance diagram for TiXmlBase::
Public Methods | |
virtual void | Print (FILE *cfile, int depth) const=0 |
All TinyXml classes can print themselves to a filestream. More... | |
Static Public Methods | |
void | SetCondenseWhiteSpace (bool condense) |
The world does not agree on whether white space should be kept or not. More... | |
bool | IsWhiteSpaceCondensed () |
Return the current white space setting. | |
Friends | |
class | TiXmlNode |
class | TiXmlElement |
class | TiXmlDocument |
It does little except to establish that TinyXml classes can be printed and provide some utility functions.
In XML, the document and elements can contain other elements and other types of nodes.
A Document can contain: Element (container or leaf) Comment (leaf) Unknown (leaf) Declaration( leaf ) An Element can contain: Element (container or leaf) Text (leaf) Attributes (not on tree) Comment (leaf) Unknown (leaf) A Decleration contains: Attributes (not on tree)
|
All TinyXml classes can print themselves to a filestream. This is a formatted print, and will insert tabs and newlines. (For an unformatted stream, use the << operator.) Reimplemented in TiXmlAttribute, TiXmlElement, TiXmlComment, TiXmlText, TiXmlDeclaration, TiXmlUnknown, and TiXmlDocument. |
|
The world does not agree on whether white space should be kept or not. In order to make everyone happy, these global, static functions are provided to set whether or not TinyXml will condense all white space into a single space or not. The default is to condense. Note changing these values is not thread safe. |