<h1>TiXmlBase Class Reference</h1><!-- doxytag: class="TiXmlBase" -->
<p><aclass="el"href="classTiXmlBase.html"title="TiXmlBase is a base class for every class in TinyXml.">TiXmlBase</a> is a base class for every class in TinyXml.
<p><ahref="classTiXmlBase-members.html">List of all members.</a></p>
<tableborder="0"cellpadding="0"cellspacing="0">
<tr><tdcolspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><tdclass="memItemLeft"align="right"valign="top">virtual void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classTiXmlBase.html#a0de56b3f2ef14c65091a3b916437b512">Print</a> (FILE *cfile, int depth) const =0</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL mode, std::string in STL mode. <ahref="#a0de56b3f2ef14c65091a3b916437b512"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Return the position, in the original source file, of this node or attribute. <ahref="#a024bceb070188df92c2a8d8852dd0853"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">See <aclass="el"href="classTiXmlBase.html#a024bceb070188df92c2a8d8852dd0853"title="Return the position, in the original source file, of this node or attribute.">Row()</a>. <br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">The world does not agree on whether white space should be kept or not. <ahref="#a0f799ec645bfb8d8a969e83478f379c1"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Expands entities in a string. <ahref="#a6bd8c315c1acb09e34107b8736505948"></a><br/></td></tr>
<p><aclass="el"href="classTiXmlBase.html"title="TiXmlBase is a base class for every class in TinyXml.">TiXmlBase</a> is a base class for every class in TinyXml. </p>
<p>It does little except to establish that TinyXml classes can be printed and provide some utility functions.</p>
<p>In XML, the document and elements can contain other elements and other types of nodes.</p>
<divclass="fragment"><preclass="fragment">
A Document can contain: Element (container or leaf)
<p>All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL mode, std::string in STL mode. </p>
<p>) Either or both cfile and str can be null.</p>
<p>This is a formatted print, and will insert tabs and newlines.</p>
<p>(For an unformatted stream, use the << operator.) </p>
<p>Implemented in <aclass="el"href="classTiXmlAttribute.html#acc04956c1d5c4c31fe74f7a7528d109a">TiXmlAttribute</a>, <aclass="el"href="classTiXmlElement.html#afbf52736e70fc91ec9d760721d6f4fd2">TiXmlElement</a>, <aclass="el"href="classTiXmlComment.html#a6b316527aaa8da0370cd68c22a5a0f5f">TiXmlComment</a>, <aclass="el"href="classTiXmlText.html#a0cafbf6f236c7f02d12b2bffc2b7976b">TiXmlText</a>, <aclass="el"href="classTiXmlDeclaration.html#abf6303db4bd05b5be554036817ff1cb4">TiXmlDeclaration</a>, <aclass="el"href="classTiXmlUnknown.html#a31ba089a40fb5a1869750fce09b0bacb">TiXmlUnknown</a>, and <aclass="el"href="classTiXmlDocument.html#a8701fda1fa31b25abbc9c0df42da10e8">TiXmlDocument</a>.</p>
<p>Return the position, in the original source file, of this node or attribute. </p>
<p>The row and column are 1-based. (That is the first row and first column is 1,1). If the returns values are 0 or less, then the parser does not have a row and column value.</p>
<p>Generally, the row and column value will be set when the TiXmlDocument::Load(), <aclass="el"href="classTiXmlDocument.html#a4c852a889c02cf251117fd1d9fe1845f"title="Load a file using the current document value.">TiXmlDocument::LoadFile()</a>, or any TiXmlNode::Parse() is called. It will NOT be set when the DOM was created from operator>>.</p>
<p>The values reflect the initial load. Once the DOM is modified programmatically (by adding or changing nodes and attributes) the new values will NOT update to reflect changes in the document.</p>
<p>There is a minor performance cost to computing the row and column. Computation can be disabled if <aclass="el"href="classTiXmlDocument.html#a51dac56316f89b35bdb7d0d433ba988e"title="SetTabSize() allows the error reporting functions (ErrorRow() and ErrorCol()) to...">TiXmlDocument::SetTabSize()</a> is called with 0 as the value.</p>
<dlclass="see"><dt><b>See also:</b></dt><dd><aclass="el"href="classTiXmlDocument.html#a51dac56316f89b35bdb7d0d433ba988e"title="SetTabSize() allows the error reporting functions (ErrorRow() and ErrorCol()) to...">TiXmlDocument::SetTabSize()</a></dd></dl>
<p>The world does not agree on whether white space should be kept or not. </p>
<p>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 this value is not thread safe. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>