<html> <head> <title>Cal3D: cal3d::TiXmlDocument Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center"> <tr> <td class="md" align="center"> <small> <b>- Cal3D 0.11 API Reference -</b> </small> </td> </tr> </table> <br> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><b>cal3d</b>::<a class="el" href="classcal3d_1_1TiXmlDocument.html">TiXmlDocument</a> </div> </div> <div class="contents"> <h1>cal3d::TiXmlDocument Class Reference</h1><!-- doxytag: class="cal3d::TiXmlDocument" --><!-- doxytag: inherits="cal3d::TiXmlNode" -->Always the top level node. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="tinyxml_8h_source.html">tinyxml.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for cal3d::TiXmlDocument:</div> <div class="dynsection"> <p><center><img src="classcal3d_1_1TiXmlDocument.png" usemap="#cal3d::TiXmlDocument_map" border="0" alt=""></center> <map name="cal3d::TiXmlDocument_map"> <area href="classcal3d_1_1TiXmlNode.html" alt="cal3d::TiXmlNode" shape="rect" coords="0,56,136,80"> <area href="classcal3d_1_1TiXmlBase.html" alt="cal3d::TiXmlBase" shape="rect" coords="0,0,136,24"> </map> </div> <p> <a href="classcal3d_1_1TiXmlDocument-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3285b32d663b3f7377bfd6582280564e"></a><!-- doxytag: member="cal3d::TiXmlDocument::TiXmlDocument" ref="3285b32d663b3f7377bfd6582280564e" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#3285b32d663b3f7377bfd6582280564e">TiXmlDocument</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create an empty document, that has no name. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87639a6e3fd68cb72121fc7c8c11c202"></a><!-- doxytag: member="cal3d::TiXmlDocument::TiXmlDocument" ref="87639a6e3fd68cb72121fc7c8c11c202" args="(const char *documentName)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#87639a6e3fd68cb72121fc7c8c11c202">TiXmlDocument</a> (const char *documentName)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a document with a name. The name of the document is also the filename of the xml. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6d7ce0fd20a925044c67cd530332a46e"></a><!-- doxytag: member="cal3d::TiXmlDocument::TiXmlDocument" ref="6d7ce0fd20a925044c67cd530332a46e" args="(const std::string &documentName)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#6d7ce0fd20a925044c67cd530332a46e">TiXmlDocument</a> (const std::string &documentName)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#db0b4c25f1a2a3451e4c817313a4916e">LoadFile</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Load a file using the current document value. <a href="#db0b4c25f1a2a3451e4c817313a4916e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5008fe6c184ed3babf65ba2b7cc02833"></a><!-- doxytag: member="cal3d::TiXmlDocument::SaveFile" ref="5008fe6c184ed3babf65ba2b7cc02833" args="() const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#5008fe6c184ed3babf65ba2b7cc02833">SaveFile</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Save a file using the current document value. Returns true if successful. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="97af49f398a4d6f54394c29a1a3168fc"></a><!-- doxytag: member="cal3d::TiXmlDocument::LoadFile" ref="97af49f398a4d6f54394c29a1a3168fc" args="(const char *filename)" --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#97af49f398a4d6f54394c29a1a3168fc">LoadFile</a> (const char *filename)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Load a file using the given filename. Returns true if successful. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a39f125c3547b3570c0353878647bdea"></a><!-- doxytag: member="cal3d::TiXmlDocument::SaveFile" ref="a39f125c3547b3570c0353878647bdea" args="(const char *filename) const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#a39f125c3547b3570c0353878647bdea">SaveFile</a> (const char *filename) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Save a file using the given filename. Returns true if successful. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#0dd174bf6808dd4d3632b564a3d89cd3">LoadFile</a> (const std::string &filename)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6edf805ec222879bab45863d31c06aca"></a><!-- doxytag: member="cal3d::TiXmlDocument::SaveFile" ref="6edf805ec222879bab45863d31c06aca" args="(const std::string &filename) const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#6edf805ec222879bab45863d31c06aca">SaveFile</a> (const std::string &filename) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">< STL std::string version. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="340b4cd01513bd0f2ebf1369e460b884"></a><!-- doxytag: member="cal3d::TiXmlDocument::Parse" ref="340b4cd01513bd0f2ebf1369e460b884" args="(const char *p, TiXmlParsingData *data=0)" --> virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#340b4cd01513bd0f2ebf1369e460b884">Parse</a> (const char *p, TiXmlParsingData *data=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Parse the given null terminated block of xml data. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcal3d_1_1TiXmlElement.html">TiXmlElement</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#6c54ec5cb0c92d27c39e12e6c6f8aa24">RootElement</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the root element -- the only top level element -- of the document. <a href="#6c54ec5cb0c92d27c39e12e6c6f8aa24"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#e7e851be264ea69162cefc8ec8581f86">Error</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">If an error occurs, Error will be set to true. <a href="#e7e851be264ea69162cefc8ec8581f86"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="72c8df599a32f4b8f85684c154c54a50"></a><!-- doxytag: member="cal3d::TiXmlDocument::ErrorDesc" ref="72c8df599a32f4b8f85684c154c54a50" args="() const " --> const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#72c8df599a32f4b8f85684c154c54a50">ErrorDesc</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Contains a textual (english) description of the error if one occurs. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#17cf672942266e01c4fe3a5c6a3e0b8b">ErrorId</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Generally, you probably want the error string ( <a class="el" href="classcal3d_1_1TiXmlDocument.html#72c8df599a32f4b8f85684c154c54a50" title="Contains a textual (english) description of the error if one occurs.">ErrorDesc()</a> ). <a href="#17cf672942266e01c4fe3a5c6a3e0b8b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#35dfb8674cc80de44196bbe7a6f5d07a">ErrorRow</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the location (if known) of the error. <a href="#35dfb8674cc80de44196bbe7a6f5d07a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2980b33bdaaa403ab68538282e7053f7"></a><!-- doxytag: member="cal3d::TiXmlDocument::ErrorCol" ref="2980b33bdaaa403ab68538282e7053f7" args="()" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#2980b33bdaaa403ab68538282e7053f7">ErrorCol</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The column where the error occured. See <a class="el" href="classcal3d_1_1TiXmlDocument.html#35dfb8674cc80de44196bbe7a6f5d07a" title="Returns the location (if known) of the error.">ErrorRow()</a>. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#7098f412e850a263e0c3cdd86588d299">SetTabSize</a> (int _tabsize)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">By calling this method, with a tab size greater than 0, the row and column of each node and attribute is stored when the file is loaded. <a href="#7098f412e850a263e0c3cdd86588d299"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9060dea2cd29a1fcb33a160659ec6f6b"></a><!-- doxytag: member="cal3d::TiXmlDocument::TabSize" ref="9060dea2cd29a1fcb33a160659ec6f6b" args="() const " --> int </td><td class="memItemRight" valign="bottom"><b>TabSize</b> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#e6a1b0d2c67a2c2a226170af1b5c7444">ClearError</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">If you have handled the error, it can be reset with this call. <a href="#e6a1b0d2c67a2c2a226170af1b5c7444"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#2f7e3918631844aacd2af3fcc20d6d26">Print</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Dump the document to standard out. <a href="#2f7e3918631844aacd2af3fcc20d6d26"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcal3d_1_1TiXmlDocument.html#4f49e9d4ec5f4daa476f14af0d78e0dc">Print</a> (FILE *cfile, int depth=0) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">All TinyXml classes can print themselves to a filestream. <a href="#4f49e9d4ec5f4daa476f14af0d78e0dc"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7df0bdbb25194dd92fc32b1b10972c91"></a><!-- doxytag: member="cal3d::TiXmlDocument::SetError" ref="7df0bdbb25194dd92fc32b1b10972c91" args="(int err, const char *errorLocation, TiXmlParsingData *prevData)" --> void </td><td class="memItemRight" valign="bottom"><b>SetError</b> (int err, const char *errorLocation, TiXmlParsingData *prevData)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf534998164807f7272f99929352e954"></a><!-- doxytag: member="cal3d::TiXmlDocument::StreamOut" ref="bf534998164807f7272f99929352e954" args="(TIXML_OSTREAM *out) const " --> virtual void </td><td class="memItemRight" valign="bottom"><b>StreamOut</b> (TIXML_OSTREAM *out) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d77d878d7aafee9a05fd5d6665c4523a"></a><!-- doxytag: member="cal3d::TiXmlDocument::Clone" ref="d77d878d7aafee9a05fd5d6665c4523a" args="() const " --> virtual <a class="el" href="classcal3d_1_1TiXmlNode.html">TiXmlNode</a> * </td><td class="memItemRight" valign="bottom"><b>Clone</b> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63436f65bf0a507dd24494f420bef7f3"></a><!-- doxytag: member="cal3d::TiXmlDocument::StreamIn" ref="63436f65bf0a507dd24494f420bef7f3" args="(TIXML_ISTREAM *in, TIXML_STRING *tag)" --> virtual void </td><td class="memItemRight" valign="bottom"><b>StreamIn</b> (TIXML_ISTREAM *in, TIXML_STRING *tag)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Always the top level node. <p> A document binds together all the XML pieces. It can be saved, loaded, and printed to the screen. The 'value' of a document node is the xml file name. <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e6a1b0d2c67a2c2a226170af1b5c7444"></a><!-- doxytag: member="cal3d::TiXmlDocument::ClearError" ref="e6a1b0d2c67a2c2a226170af1b5c7444" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void cal3d::TiXmlDocument::ClearError </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> If you have handled the error, it can be reset with this call. <p> The error state is automatically cleared if you Parse a new XML block. </div> </div><p> <a class="anchor" name="e7e851be264ea69162cefc8ec8581f86"></a><!-- doxytag: member="cal3d::TiXmlDocument::Error" ref="e7e851be264ea69162cefc8ec8581f86" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool cal3d::TiXmlDocument::Error </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> If an error occurs, Error will be set to true. <p> Also,<ul> <li>The <a class="el" href="classcal3d_1_1TiXmlDocument.html#17cf672942266e01c4fe3a5c6a3e0b8b" title="Generally, you probably want the error string ( ErrorDesc() ).">ErrorId()</a> will contain the integer identifier of the error (not generally useful)</li><li>The <a class="el" href="classcal3d_1_1TiXmlDocument.html#72c8df599a32f4b8f85684c154c54a50" title="Contains a textual (english) description of the error if one occurs.">ErrorDesc()</a> method will return the name of the error. (very useful)</li><li>The <a class="el" href="classcal3d_1_1TiXmlDocument.html#35dfb8674cc80de44196bbe7a6f5d07a" title="Returns the location (if known) of the error.">ErrorRow()</a> and <a class="el" href="classcal3d_1_1TiXmlDocument.html#2980b33bdaaa403ab68538282e7053f7" title="The column where the error occured. See ErrorRow().">ErrorCol()</a> will return the location of the error (if known) </li></ul> </div> </div><p> <a class="anchor" name="17cf672942266e01c4fe3a5c6a3e0b8b"></a><!-- doxytag: member="cal3d::TiXmlDocument::ErrorId" ref="17cf672942266e01c4fe3a5c6a3e0b8b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const int cal3d::TiXmlDocument::ErrorId </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Generally, you probably want the error string ( <a class="el" href="classcal3d_1_1TiXmlDocument.html#72c8df599a32f4b8f85684c154c54a50" title="Contains a textual (english) description of the error if one occurs.">ErrorDesc()</a> ). <p> But if you prefer the ErrorId, this function will fetch it. </div> </div><p> <a class="anchor" name="35dfb8674cc80de44196bbe7a6f5d07a"></a><!-- doxytag: member="cal3d::TiXmlDocument::ErrorRow" ref="35dfb8674cc80de44196bbe7a6f5d07a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int cal3d::TiXmlDocument::ErrorRow </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the location (if known) of the error. <p> The first column is column 1, and the first row is row 1. A value of 0 means the row and column wasn't applicable (memory errors, for example, have no row/column) or the parser lost the error. (An error in the error reporting, in that case.)<p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classcal3d_1_1TiXmlDocument.html#7098f412e850a263e0c3cdd86588d299" title="By calling this method, with a tab size greater than 0, the row and column of each...">SetTabSize</a>, <a class="el" href="classcal3d_1_1TiXmlBase.html#0985364b382c76f4d85e840030b7b75d" title="Return the position, in the original source file, of this node or attribute.">Row</a>, <a class="el" href="classcal3d_1_1TiXmlBase.html#1da0121c17e668d1b93add8370298e69" title="See Row().">Column</a> </dd></dl> </div> </div><p> <a class="anchor" name="0dd174bf6808dd4d3632b564a3d89cd3"></a><!-- doxytag: member="cal3d::TiXmlDocument::LoadFile" ref="0dd174bf6808dd4d3632b564a3d89cd3" args="(const std::string &filename)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool cal3d::TiXmlDocument::LoadFile </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>filename</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td>STL std::string version. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="db0b4c25f1a2a3451e4c817313a4916e"></a><!-- doxytag: member="cal3d::TiXmlDocument::LoadFile" ref="db0b4c25f1a2a3451e4c817313a4916e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool cal3d::TiXmlDocument::LoadFile </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Load a file using the current document value. <p> Returns true if successful. Will delete any existing document data before loading. </div> </div><p> <a class="anchor" name="4f49e9d4ec5f4daa476f14af0d78e0dc"></a><!-- doxytag: member="cal3d::TiXmlDocument::Print" ref="4f49e9d4ec5f4daa476f14af0d78e0dc" args="(FILE *cfile, int depth=0) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void cal3d::TiXmlDocument::Print </td> <td>(</td> <td class="paramtype">FILE * </td> <td class="paramname"> <em>cfile</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>depth</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> All TinyXml classes can print themselves to a filestream. <p> This is a formatted print, and will insert tabs and newlines.<p> (For an unformatted stream, use the << operator.) <p>Implements <a class="el" href="classcal3d_1_1TiXmlBase.html#9472a1573c23eb1013160de24a452032">cal3d::TiXmlBase</a>.</p> </div> </div><p> <a class="anchor" name="2f7e3918631844aacd2af3fcc20d6d26"></a><!-- doxytag: member="cal3d::TiXmlDocument::Print" ref="2f7e3918631844aacd2af3fcc20d6d26" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void cal3d::TiXmlDocument::Print </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Dump the document to standard out. <p> </div> </div><p> <a class="anchor" name="6c54ec5cb0c92d27c39e12e6c6f8aa24"></a><!-- doxytag: member="cal3d::TiXmlDocument::RootElement" ref="6c54ec5cb0c92d27c39e12e6c6f8aa24" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcal3d_1_1TiXmlElement.html">TiXmlElement</a>* cal3d::TiXmlDocument::RootElement </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the root element -- the only top level element -- of the document. <p> In well formed XML, there should only be one. TinyXml is tolerant of multiple elements at the document level. </div> </div><p> <a class="anchor" name="7098f412e850a263e0c3cdd86588d299"></a><!-- doxytag: member="cal3d::TiXmlDocument::SetTabSize" ref="7098f412e850a263e0c3cdd86588d299" args="(int _tabsize)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void cal3d::TiXmlDocument::SetTabSize </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>_tabsize</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> By calling this method, with a tab size greater than 0, the row and column of each node and attribute is stored when the file is loaded. <p> Very useful for tracking the DOM back in to the source file.<p> The tab size is required for calculating the location of nodes. If not set, the default of 4 is used. The tabsize is set per document. Setting the tabsize to 0 disables row/column tracking.<p> Note that row and column tracking is not supported when using operator>>.<p> The tab size needs to be enabled before the parse or load. Correct usage: <div class="fragment"><pre class="fragment"> TiXmlDocument doc; doc.SetTabSize( 8 ); doc.Load( "myfile.xml" ); </pre></div><p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classcal3d_1_1TiXmlBase.html#0985364b382c76f4d85e840030b7b75d" title="Return the position, in the original source file, of this node or attribute.">Row</a>, <a class="el" href="classcal3d_1_1TiXmlBase.html#1da0121c17e668d1b93add8370298e69" title="See Row().">Column</a> </dd></dl> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="tinyxml_8h_source.html">tinyxml.h</a><li>tinyxml.cpp<li>tinyxmlparser.cpp</ul> </div> <hr> <center> <small> Generated at Fri Jul 24 21:14:57 2009 by <a href="http://gna.org/projects/cal3d/">The Cal3D Team</a> with <a href="http://www.doxygen.org/index.html"> Doxygen 1.5.9 </a> </small> </center> </body> </html>