Home | History | Annotate | Download | only in docs
      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
      6 <meta name="generator" content="Doxygen 1.8.13"/>
      7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
      8 <title>TinyXML-2: tinyxml2::XMLNode Class Reference</title>
      9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
     10 <script type="text/javascript" src="jquery.js"></script>
     11 <script type="text/javascript" src="dynsections.js"></script>
     12 <link href="search/search.css" rel="stylesheet" type="text/css"/>
     13 <script type="text/javascript" src="search/searchdata.js"></script>
     14 <script type="text/javascript" src="search/search.js"></script>
     15 <link href="doxygen.css" rel="stylesheet" type="text/css" />
     16 </head>
     17 <body>
     18 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     19 <div id="titlearea">
     20 <table cellspacing="0" cellpadding="0">
     21  <tbody>
     22  <tr style="height: 56px;">
     23   <td id="projectalign" style="padding-left: 0.5em;">
     24    <div id="projectname">TinyXML-2
     25    &#160;<span id="projectnumber">7.0.0</span>
     26    </div>
     27   </td>
     28  </tr>
     29  </tbody>
     30 </table>
     31 </div>
     32 <!-- end header part -->
     33 <!-- Generated by Doxygen 1.8.13 -->
     34 <script type="text/javascript">
     35 var searchBox = new SearchBox("searchBox", "search",false,'Search');
     36 </script>
     37 <script type="text/javascript" src="menudata.js"></script>
     38 <script type="text/javascript" src="menu.js"></script>
     39 <script type="text/javascript">
     40 $(function() {
     41   initMenu('',true,false,'search.php','Search');
     42   $(document).ready(function() { init_search(); });
     43 });
     44 </script>
     45 <div id="main-nav"></div>
     46 <!-- window showing the filter options -->
     47 <div id="MSearchSelectWindow"
     48      onmouseover="return searchBox.OnSearchSelectShow()"
     49      onmouseout="return searchBox.OnSearchSelectHide()"
     50      onkeydown="return searchBox.OnSearchSelectKey(event)">
     51 </div>
     52 
     53 <!-- iframe showing the search results (closed by default) -->
     54 <div id="MSearchResultsWindow">
     55 <iframe src="javascript:void(0)" frameborder="0" 
     56         name="MSearchResults" id="MSearchResults">
     57 </iframe>
     58 </div>
     59 
     60 <div id="nav-path" class="navpath">
     61   <ul>
     62 <li class="navelem"><b>tinyxml2</b></li><li class="navelem"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a></li>  </ul>
     63 </div>
     64 </div><!-- top -->
     65 <div class="header">
     66   <div class="summary">
     67 <a href="#pub-methods">Public Member Functions</a> &#124;
     68 <a href="classtinyxml2_1_1_x_m_l_node-members.html">List of all members</a>  </div>
     69   <div class="headertitle">
     70 <div class="title">tinyxml2::XMLNode Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
     71 </div><!--header-->
     72 <div class="contents">
     73 
     74 <p><code>#include &lt;<a class="el" href="tinyxml2_8h_source.html">tinyxml2.h</a>&gt;</code></p>
     75 <div class="dynheader">
     76 Inheritance diagram for tinyxml2::XMLNode:</div>
     77 <div class="dyncontent">
     78  <div class="center">
     79   <img src="classtinyxml2_1_1_x_m_l_node.png" usemap="#tinyxml2::XMLNode_map" alt=""/>
     80   <map id="tinyxml2::XMLNode_map" name="tinyxml2::XMLNode_map">
     81 <area href="classtinyxml2_1_1_x_m_l_comment.html" alt="tinyxml2::XMLComment" shape="rect" coords="0,56,155,80"/>
     82 <area href="classtinyxml2_1_1_x_m_l_declaration.html" alt="tinyxml2::XMLDeclaration" shape="rect" coords="165,56,320,80"/>
     83 <area href="classtinyxml2_1_1_x_m_l_document.html" alt="tinyxml2::XMLDocument" shape="rect" coords="330,56,485,80"/>
     84 <area href="classtinyxml2_1_1_x_m_l_element.html" alt="tinyxml2::XMLElement" shape="rect" coords="495,56,650,80"/>
     85 <area href="classtinyxml2_1_1_x_m_l_text.html" alt="tinyxml2::XMLText" shape="rect" coords="660,56,815,80"/>
     86 <area href="classtinyxml2_1_1_x_m_l_unknown.html" alt="tinyxml2::XMLUnknown" shape="rect" coords="825,56,980,80"/>
     87 </map>
     88  </div></div>
     89 <table class="memberdecls">
     90 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
     91 Public Member Functions</h2></td></tr>
     92 <tr class="memitem:a2de84cfa4ec3fe249bad745069d145f1"><td class="memItemLeft" align="right" valign="top"><a id="a2de84cfa4ec3fe249bad745069d145f1"></a>
     93 const <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a2de84cfa4ec3fe249bad745069d145f1">GetDocument</a> () const</td></tr>
     94 <tr class="memdesc:a2de84cfa4ec3fe249bad745069d145f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> that owns this <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>. <br /></td></tr>
     95 <tr class="separator:a2de84cfa4ec3fe249bad745069d145f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
     96 <tr class="memitem:af343d1ef0b45c0020e62d784d7e67a68"><td class="memItemLeft" align="right" valign="top"><a id="af343d1ef0b45c0020e62d784d7e67a68"></a>
     97 <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#af343d1ef0b45c0020e62d784d7e67a68">GetDocument</a> ()</td></tr>
     98 <tr class="memdesc:af343d1ef0b45c0020e62d784d7e67a68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> that owns this <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>. <br /></td></tr>
     99 <tr class="separator:af343d1ef0b45c0020e62d784d7e67a68"><td class="memSeparator" colspan="2">&#160;</td></tr>
    100 <tr class="memitem:aab516e699567f75cc9ab2ef2eee501e8"><td class="memItemLeft" align="right" valign="top"><a id="aab516e699567f75cc9ab2ef2eee501e8"></a>
    101 virtual <a class="el" href="classtinyxml2_1_1_x_m_l_element.html">XMLElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#aab516e699567f75cc9ab2ef2eee501e8">ToElement</a> ()</td></tr>
    102 <tr class="memdesc:aab516e699567f75cc9ab2ef2eee501e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safely cast to an Element, or null. <br /></td></tr>
    103 <tr class="separator:aab516e699567f75cc9ab2ef2eee501e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
    104 <tr class="memitem:a41c55dab9162d1eb62db2008430e376b"><td class="memItemLeft" align="right" valign="top"><a id="a41c55dab9162d1eb62db2008430e376b"></a>
    105 virtual <a class="el" href="classtinyxml2_1_1_x_m_l_text.html">XMLText</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a41c55dab9162d1eb62db2008430e376b">ToText</a> ()</td></tr>
    106 <tr class="memdesc:a41c55dab9162d1eb62db2008430e376b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safely cast to Text, or null. <br /></td></tr>
    107 <tr class="separator:a41c55dab9162d1eb62db2008430e376b"><td class="memSeparator" colspan="2">&#160;</td></tr>
    108 <tr class="memitem:aff47671055aa99840a1c1ebd661e63e3"><td class="memItemLeft" align="right" valign="top"><a id="aff47671055aa99840a1c1ebd661e63e3"></a>
    109 virtual <a class="el" href="classtinyxml2_1_1_x_m_l_comment.html">XMLComment</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#aff47671055aa99840a1c1ebd661e63e3">ToComment</a> ()</td></tr>
    110 <tr class="memdesc:aff47671055aa99840a1c1ebd661e63e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safely cast to a Comment, or null. <br /></td></tr>
    111 <tr class="separator:aff47671055aa99840a1c1ebd661e63e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
    112 <tr class="memitem:a836e2966ed736fc3c94f70e12a2a3357"><td class="memItemLeft" align="right" valign="top"><a id="a836e2966ed736fc3c94f70e12a2a3357"></a>
    113 virtual <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a836e2966ed736fc3c94f70e12a2a3357">ToDocument</a> ()</td></tr>
    114 <tr class="memdesc:a836e2966ed736fc3c94f70e12a2a3357"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safely cast to a Document, or null. <br /></td></tr>
    115 <tr class="separator:a836e2966ed736fc3c94f70e12a2a3357"><td class="memSeparator" colspan="2">&#160;</td></tr>
    116 <tr class="memitem:a174fd4c22c010b58138c1b84a0dfbd51"><td class="memItemLeft" align="right" valign="top"><a id="a174fd4c22c010b58138c1b84a0dfbd51"></a>
    117 virtual <a class="el" href="classtinyxml2_1_1_x_m_l_declaration.html">XMLDeclaration</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a174fd4c22c010b58138c1b84a0dfbd51">ToDeclaration</a> ()</td></tr>
    118 <tr class="memdesc:a174fd4c22c010b58138c1b84a0dfbd51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safely cast to a Declaration, or null. <br /></td></tr>
    119 <tr class="separator:a174fd4c22c010b58138c1b84a0dfbd51"><td class="memSeparator" colspan="2">&#160;</td></tr>
    120 <tr class="memitem:a8675a74aa0ada6eccab0c77ef3e5b9bd"><td class="memItemLeft" align="right" valign="top"><a id="a8675a74aa0ada6eccab0c77ef3e5b9bd"></a>
    121 virtual <a class="el" href="classtinyxml2_1_1_x_m_l_unknown.html">XMLUnknown</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a8675a74aa0ada6eccab0c77ef3e5b9bd">ToUnknown</a> ()</td></tr>
    122 <tr class="memdesc:a8675a74aa0ada6eccab0c77ef3e5b9bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safely cast to an Unknown, or null. <br /></td></tr>
    123 <tr class="separator:a8675a74aa0ada6eccab0c77ef3e5b9bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
    124 <tr class="memitem:a66344989a4b436155bcda72bd6b07b82"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a66344989a4b436155bcda72bd6b07b82">Value</a> () const</td></tr>
    125 <tr class="separator:a66344989a4b436155bcda72bd6b07b82"><td class="memSeparator" colspan="2">&#160;</td></tr>
    126 <tr class="memitem:a09dd68cf9eae137579f6e50f36487513"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a09dd68cf9eae137579f6e50f36487513">SetValue</a> (const char *val, bool staticMem=false)</td></tr>
    127 <tr class="separator:a09dd68cf9eae137579f6e50f36487513"><td class="memSeparator" colspan="2">&#160;</td></tr>
    128 <tr class="memitem:a9b5fc636646fda761d342c72e91cb286"><td class="memItemLeft" align="right" valign="top"><a id="a9b5fc636646fda761d342c72e91cb286"></a>
    129 int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a9b5fc636646fda761d342c72e91cb286">GetLineNum</a> () const</td></tr>
    130 <tr class="memdesc:a9b5fc636646fda761d342c72e91cb286"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the line number the node is in, if the document was parsed from a file. <br /></td></tr>
    131 <tr class="separator:a9b5fc636646fda761d342c72e91cb286"><td class="memSeparator" colspan="2">&#160;</td></tr>
    132 <tr class="memitem:ae0f62bc186c56c2e0483ebd52dbfbe34"><td class="memItemLeft" align="right" valign="top"><a id="ae0f62bc186c56c2e0483ebd52dbfbe34"></a>
    133 const <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#ae0f62bc186c56c2e0483ebd52dbfbe34">Parent</a> () const</td></tr>
    134 <tr class="memdesc:ae0f62bc186c56c2e0483ebd52dbfbe34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the parent of this node on the DOM. <br /></td></tr>
    135 <tr class="separator:ae0f62bc186c56c2e0483ebd52dbfbe34"><td class="memSeparator" colspan="2">&#160;</td></tr>
    136 <tr class="memitem:ac3ab489e6e202a3cd1762d3b332e89d4"><td class="memItemLeft" align="right" valign="top"><a id="ac3ab489e6e202a3cd1762d3b332e89d4"></a>
    137 bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#ac3ab489e6e202a3cd1762d3b332e89d4">NoChildren</a> () const</td></tr>
    138 <tr class="memdesc:ac3ab489e6e202a3cd1762d3b332e89d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if this node has no children. <br /></td></tr>
    139 <tr class="separator:ac3ab489e6e202a3cd1762d3b332e89d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
    140 <tr class="memitem:ae7dc225e1018cdd685f7563593a1fe08"><td class="memItemLeft" align="right" valign="top"><a id="ae7dc225e1018cdd685f7563593a1fe08"></a>
    141 const <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#ae7dc225e1018cdd685f7563593a1fe08">FirstChild</a> () const</td></tr>
    142 <tr class="memdesc:ae7dc225e1018cdd685f7563593a1fe08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the first child node, or null if none exists. <br /></td></tr>
    143 <tr class="separator:ae7dc225e1018cdd685f7563593a1fe08"><td class="memSeparator" colspan="2">&#160;</td></tr>
    144 <tr class="memitem:a1795a35852dc8aae877cc8ded986e59b"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classtinyxml2_1_1_x_m_l_element.html">XMLElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a1795a35852dc8aae877cc8ded986e59b">FirstChildElement</a> (const char *name=0) const</td></tr>
    145 <tr class="separator:a1795a35852dc8aae877cc8ded986e59b"><td class="memSeparator" colspan="2">&#160;</td></tr>
    146 <tr class="memitem:a9b8583a277e8e26f4cbbb5492786778e"><td class="memItemLeft" align="right" valign="top"><a id="a9b8583a277e8e26f4cbbb5492786778e"></a>
    147 const <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a9b8583a277e8e26f4cbbb5492786778e">LastChild</a> () const</td></tr>
    148 <tr class="memdesc:a9b8583a277e8e26f4cbbb5492786778e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the last child node, or null if none exists. <br /></td></tr>
    149 <tr class="separator:a9b8583a277e8e26f4cbbb5492786778e"><td class="memSeparator" colspan="2">&#160;</td></tr>
    150 <tr class="memitem:a173e9d1341bc56992e2d320a35936551"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classtinyxml2_1_1_x_m_l_element.html">XMLElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a173e9d1341bc56992e2d320a35936551">LastChildElement</a> (const char *name=0) const</td></tr>
    151 <tr class="separator:a173e9d1341bc56992e2d320a35936551"><td class="memSeparator" colspan="2">&#160;</td></tr>
    152 <tr class="memitem:aac667c513d445f8b783e1e15ef9d3551"><td class="memItemLeft" align="right" valign="top"><a id="aac667c513d445f8b783e1e15ef9d3551"></a>
    153 const <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#aac667c513d445f8b783e1e15ef9d3551">PreviousSibling</a> () const</td></tr>
    154 <tr class="memdesc:aac667c513d445f8b783e1e15ef9d3551"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the previous (left) sibling node of this node. <br /></td></tr>
    155 <tr class="separator:aac667c513d445f8b783e1e15ef9d3551"><td class="memSeparator" colspan="2">&#160;</td></tr>
    156 <tr class="memitem:a872936cae46fb473eb47fec99129fc70"><td class="memItemLeft" align="right" valign="top"><a id="a872936cae46fb473eb47fec99129fc70"></a>
    157 const <a class="el" href="classtinyxml2_1_1_x_m_l_element.html">XMLElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a872936cae46fb473eb47fec99129fc70">PreviousSiblingElement</a> (const char *name=0) const</td></tr>
    158 <tr class="memdesc:a872936cae46fb473eb47fec99129fc70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the previous (left) sibling element of this node, with an optionally supplied name. <br /></td></tr>
    159 <tr class="separator:a872936cae46fb473eb47fec99129fc70"><td class="memSeparator" colspan="2">&#160;</td></tr>
    160 <tr class="memitem:a79db9ef0fe014d27790f2218b87bcbb5"><td class="memItemLeft" align="right" valign="top"><a id="a79db9ef0fe014d27790f2218b87bcbb5"></a>
    161 const <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a79db9ef0fe014d27790f2218b87bcbb5">NextSibling</a> () const</td></tr>
    162 <tr class="memdesc:a79db9ef0fe014d27790f2218b87bcbb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the next (right) sibling node of this node. <br /></td></tr>
    163 <tr class="separator:a79db9ef0fe014d27790f2218b87bcbb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
    164 <tr class="memitem:a1264c86233328f0cd36297552d982f80"><td class="memItemLeft" align="right" valign="top"><a id="a1264c86233328f0cd36297552d982f80"></a>
    165 const <a class="el" href="classtinyxml2_1_1_x_m_l_element.html">XMLElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a1264c86233328f0cd36297552d982f80">NextSiblingElement</a> (const char *name=0) const</td></tr>
    166 <tr class="memdesc:a1264c86233328f0cd36297552d982f80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the next (right) sibling element of this node, with an optionally supplied name. <br /></td></tr>
    167 <tr class="separator:a1264c86233328f0cd36297552d982f80"><td class="memSeparator" colspan="2">&#160;</td></tr>
    168 <tr class="memitem:aeb249ed60f4e8bfad3709151c3ee4286"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#aeb249ed60f4e8bfad3709151c3ee4286">InsertEndChild</a> (<a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *addThis)</td></tr>
    169 <tr class="separator:aeb249ed60f4e8bfad3709151c3ee4286"><td class="memSeparator" colspan="2">&#160;</td></tr>
    170 <tr class="memitem:a8ff7dc071f3a1a6ae2ac25a37492865d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a8ff7dc071f3a1a6ae2ac25a37492865d">InsertFirstChild</a> (<a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *addThis)</td></tr>
    171 <tr class="separator:a8ff7dc071f3a1a6ae2ac25a37492865d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    172 <tr class="memitem:a85adb8f0b7477eec30f9a41d420b09c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a85adb8f0b7477eec30f9a41d420b09c2">InsertAfterChild</a> (<a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *afterThis, <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *addThis)</td></tr>
    173 <tr class="separator:a85adb8f0b7477eec30f9a41d420b09c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
    174 <tr class="memitem:a0360085cc54df5bff85d5c5da13afdce"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a0360085cc54df5bff85d5c5da13afdce">DeleteChildren</a> ()</td></tr>
    175 <tr class="separator:a0360085cc54df5bff85d5c5da13afdce"><td class="memSeparator" colspan="2">&#160;</td></tr>
    176 <tr class="memitem:a363b6edbd6ebd55f8387d2b89f2b0921"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a363b6edbd6ebd55f8387d2b89f2b0921">DeleteChild</a> (<a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *node)</td></tr>
    177 <tr class="separator:a363b6edbd6ebd55f8387d2b89f2b0921"><td class="memSeparator" colspan="2">&#160;</td></tr>
    178 <tr class="memitem:a8402cbd3129d20e9e6024bbcc0531283"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a8402cbd3129d20e9e6024bbcc0531283">ShallowClone</a> (<a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> *document) const =0</td></tr>
    179 <tr class="separator:a8402cbd3129d20e9e6024bbcc0531283"><td class="memSeparator" colspan="2">&#160;</td></tr>
    180 <tr class="memitem:a62c71b6bf8734b5424063b8d9a61c266"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a62c71b6bf8734b5424063b8d9a61c266">DeepClone</a> (<a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> *target) const</td></tr>
    181 <tr class="separator:a62c71b6bf8734b5424063b8d9a61c266"><td class="memSeparator" colspan="2">&#160;</td></tr>
    182 <tr class="memitem:a7ce18b751c3ea09eac292dca264f9226"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a7ce18b751c3ea09eac292dca264f9226">ShallowEqual</a> (const <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *compare) const =0</td></tr>
    183 <tr class="separator:a7ce18b751c3ea09eac292dca264f9226"><td class="memSeparator" colspan="2">&#160;</td></tr>
    184 <tr class="memitem:a81e66df0a44c67a7af17f3b77a152785"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a81e66df0a44c67a7af17f3b77a152785">Accept</a> (<a class="el" href="classtinyxml2_1_1_x_m_l_visitor.html">XMLVisitor</a> *visitor) const =0</td></tr>
    185 <tr class="separator:a81e66df0a44c67a7af17f3b77a152785"><td class="memSeparator" colspan="2">&#160;</td></tr>
    186 <tr class="memitem:a002978fc889cc011d143185f2377eca2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a002978fc889cc011d143185f2377eca2">SetUserData</a> (void *userData)</td></tr>
    187 <tr class="separator:a002978fc889cc011d143185f2377eca2"><td class="memSeparator" colspan="2">&#160;</td></tr>
    188 <tr class="memitem:a7f0687574afa03bc479dc44f29db0afe"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a7f0687574afa03bc479dc44f29db0afe">GetUserData</a> () const</td></tr>
    189 <tr class="separator:a7f0687574afa03bc479dc44f29db0afe"><td class="memSeparator" colspan="2">&#160;</td></tr>
    190 </table>
    191 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
    192 <div class="textblock"><p><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> is a base class for every object that is in the XML Document Object Model (DOM), except XMLAttributes. Nodes have siblings, a parent, and children which can be navigated. A node is always in a <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a>. The type of a <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> can be queried, and it can be cast to its more defined type.</p>
    193 <p>A <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> allocates memory for all its Nodes. When the <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> gets deleted, all its Nodes will also be deleted.</p>
    194 <pre class="fragment">A Document can contain: Element (container or leaf)
    195                         Comment (leaf)
    196                         Unknown (leaf)
    197                         Declaration( leaf )
    198 
    199 An Element can contain: Element (container or leaf)
    200                         Text    (leaf)
    201                         Attributes (not on tree)
    202                         Comment (leaf)
    203                         Unknown (leaf)</pre> </div><h2 class="groupheader">Member Function Documentation</h2>
    204 <a id="a81e66df0a44c67a7af17f3b77a152785"></a>
    205 <h2 class="memtitle"><span class="permalink"><a href="#a81e66df0a44c67a7af17f3b77a152785">&#9670;&nbsp;</a></span>Accept()</h2>
    206 
    207 <div class="memitem">
    208 <div class="memproto">
    209 <table class="mlabels">
    210   <tr>
    211   <td class="mlabels-left">
    212       <table class="memname">
    213         <tr>
    214           <td class="memname">virtual bool tinyxml2::XMLNode::Accept </td>
    215           <td>(</td>
    216           <td class="paramtype"><a class="el" href="classtinyxml2_1_1_x_m_l_visitor.html">XMLVisitor</a> *&#160;</td>
    217           <td class="paramname"><em>visitor</em></td><td>)</td>
    218           <td> const</td>
    219         </tr>
    220       </table>
    221   </td>
    222   <td class="mlabels-right">
    223 <span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
    224   </tr>
    225 </table>
    226 </div><div class="memdoc">
    227 <p>Accept a hierarchical visit of the nodes in the TinyXML-2 DOM. Every node in the XML tree will be conditionally visited and the host will be called back via the <a class="el" href="classtinyxml2_1_1_x_m_l_visitor.html">XMLVisitor</a> interface.</p>
    228 <p>This is essentially a SAX interface for TinyXML-2. (Note however it doesn't re-parse the XML for the callbacks, so the performance of TinyXML-2 is unchanged by using this interface versus any other.)</p>
    229 <p>The interface has been based on ideas from:</p>
    230 <ul>
    231 <li><a href="http://www.saxproject.org/">http://www.saxproject.org/</a></li>
    232 <li><a href="http://c2.com/cgi/wiki?HierarchicalVisitorPattern">http://c2.com/cgi/wiki?HierarchicalVisitorPattern</a></li>
    233 </ul>
    234 <p>Which are both good references for "visiting".</p>
    235 <p>An example of using <a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a81e66df0a44c67a7af17f3b77a152785">Accept()</a>: </p><pre class="fragment">XMLPrinter printer;
    236 tinyxmlDoc.Accept( &amp;printer );
    237 const char* xmlcstr = printer.CStr();
    238 </pre> 
    239 <p>Implemented in <a class="el" href="classtinyxml2_1_1_x_m_l_document.html#a9efa54f7ecb37c17ab1fa2b3078ccca1">tinyxml2::XMLDocument</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_element.html#a3ea8a40e788fb9ad876c28a32932c6d5">tinyxml2::XMLElement</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_unknown.html#a70983aa1b1cff3d3aa6d4d0a80e5ee48">tinyxml2::XMLUnknown</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_declaration.html#a5f376019fb34752eb248548f42f32045">tinyxml2::XMLDeclaration</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_comment.html#a4a33dc32fae0285b03f9cfcb3e43e122">tinyxml2::XMLComment</a>, and <a class="el" href="classtinyxml2_1_1_x_m_l_text.html#a1b2c1448f1a21299d0a7913f18b55206">tinyxml2::XMLText</a>.</p>
    240 
    241 </div>
    242 </div>
    243 <a id="a62c71b6bf8734b5424063b8d9a61c266"></a>
    244 <h2 class="memtitle"><span class="permalink"><a href="#a62c71b6bf8734b5424063b8d9a61c266">&#9670;&nbsp;</a></span>DeepClone()</h2>
    245 
    246 <div class="memitem">
    247 <div class="memproto">
    248       <table class="memname">
    249         <tr>
    250           <td class="memname"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>* tinyxml2::XMLNode::DeepClone </td>
    251           <td>(</td>
    252           <td class="paramtype"><a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> *&#160;</td>
    253           <td class="paramname"><em>target</em></td><td>)</td>
    254           <td> const</td>
    255         </tr>
    256       </table>
    257 </div><div class="memdoc">
    258 <p>Make a copy of this node and all its children.</p>
    259 <p>If the 'target' is null, then the nodes will be allocated in the current document. If 'target' is specified, the memory will be allocated is the specified <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a>.</p>
    260 <p>NOTE: This is probably not the correct tool to copy a document, since XMLDocuments can have multiple top level XMLNodes. You probably want to use <a class="el" href="classtinyxml2_1_1_x_m_l_document.html#af592ffc91514e25a39664521ac83db45">XMLDocument::DeepCopy()</a> </p>
    261 
    262 </div>
    263 </div>
    264 <a id="a363b6edbd6ebd55f8387d2b89f2b0921"></a>
    265 <h2 class="memtitle"><span class="permalink"><a href="#a363b6edbd6ebd55f8387d2b89f2b0921">&#9670;&nbsp;</a></span>DeleteChild()</h2>
    266 
    267 <div class="memitem">
    268 <div class="memproto">
    269       <table class="memname">
    270         <tr>
    271           <td class="memname">void tinyxml2::XMLNode::DeleteChild </td>
    272           <td>(</td>
    273           <td class="paramtype"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td>
    274           <td class="paramname"><em>node</em></td><td>)</td>
    275           <td></td>
    276         </tr>
    277       </table>
    278 </div><div class="memdoc">
    279 <p>Delete a child of this node. </p>
    280 
    281 </div>
    282 </div>
    283 <a id="a0360085cc54df5bff85d5c5da13afdce"></a>
    284 <h2 class="memtitle"><span class="permalink"><a href="#a0360085cc54df5bff85d5c5da13afdce">&#9670;&nbsp;</a></span>DeleteChildren()</h2>
    285 
    286 <div class="memitem">
    287 <div class="memproto">
    288       <table class="memname">
    289         <tr>
    290           <td class="memname">void tinyxml2::XMLNode::DeleteChildren </td>
    291           <td>(</td>
    292           <td class="paramname"></td><td>)</td>
    293           <td></td>
    294         </tr>
    295       </table>
    296 </div><div class="memdoc">
    297 <p>Delete all the children of this node. </p>
    298 
    299 </div>
    300 </div>
    301 <a id="a1795a35852dc8aae877cc8ded986e59b"></a>
    302 <h2 class="memtitle"><span class="permalink"><a href="#a1795a35852dc8aae877cc8ded986e59b">&#9670;&nbsp;</a></span>FirstChildElement()</h2>
    303 
    304 <div class="memitem">
    305 <div class="memproto">
    306       <table class="memname">
    307         <tr>
    308           <td class="memname">const <a class="el" href="classtinyxml2_1_1_x_m_l_element.html">XMLElement</a>* tinyxml2::XMLNode::FirstChildElement </td>
    309           <td>(</td>
    310           <td class="paramtype">const char *&#160;</td>
    311           <td class="paramname"><em>name</em> = <code>0</code></td><td>)</td>
    312           <td> const</td>
    313         </tr>
    314       </table>
    315 </div><div class="memdoc">
    316 <p>Get the first child element, or optionally the first child element with the specified name. </p>
    317 
    318 </div>
    319 </div>
    320 <a id="a7f0687574afa03bc479dc44f29db0afe"></a>
    321 <h2 class="memtitle"><span class="permalink"><a href="#a7f0687574afa03bc479dc44f29db0afe">&#9670;&nbsp;</a></span>GetUserData()</h2>
    322 
    323 <div class="memitem">
    324 <div class="memproto">
    325 <table class="mlabels">
    326   <tr>
    327   <td class="mlabels-left">
    328       <table class="memname">
    329         <tr>
    330           <td class="memname">void* tinyxml2::XMLNode::GetUserData </td>
    331           <td>(</td>
    332           <td class="paramname"></td><td>)</td>
    333           <td> const</td>
    334         </tr>
    335       </table>
    336   </td>
    337   <td class="mlabels-right">
    338 <span class="mlabels"><span class="mlabel">inline</span></span>  </td>
    339   </tr>
    340 </table>
    341 </div><div class="memdoc">
    342 <p>Get user data set into the <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>. TinyXML-2 in no way processes or interprets user data. It is initially 0. </p>
    343 
    344 </div>
    345 </div>
    346 <a id="a85adb8f0b7477eec30f9a41d420b09c2"></a>
    347 <h2 class="memtitle"><span class="permalink"><a href="#a85adb8f0b7477eec30f9a41d420b09c2">&#9670;&nbsp;</a></span>InsertAfterChild()</h2>
    348 
    349 <div class="memitem">
    350 <div class="memproto">
    351       <table class="memname">
    352         <tr>
    353           <td class="memname"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>* tinyxml2::XMLNode::InsertAfterChild </td>
    354           <td>(</td>
    355           <td class="paramtype"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td>
    356           <td class="paramname"><em>afterThis</em>, </td>
    357         </tr>
    358         <tr>
    359           <td class="paramkey"></td>
    360           <td></td>
    361           <td class="paramtype"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td>
    362           <td class="paramname"><em>addThis</em>&#160;</td>
    363         </tr>
    364         <tr>
    365           <td></td>
    366           <td>)</td>
    367           <td></td><td></td>
    368         </tr>
    369       </table>
    370 </div><div class="memdoc">
    371 <p>Add a node after the specified child node. If the child node is already part of the document, it is moved from its old location to the new location. Returns the addThis argument or 0 if the afterThis node is not a child of this node, or if the node does not belong to the same document. </p>
    372 
    373 </div>
    374 </div>
    375 <a id="aeb249ed60f4e8bfad3709151c3ee4286"></a>
    376 <h2 class="memtitle"><span class="permalink"><a href="#aeb249ed60f4e8bfad3709151c3ee4286">&#9670;&nbsp;</a></span>InsertEndChild()</h2>
    377 
    378 <div class="memitem">
    379 <div class="memproto">
    380       <table class="memname">
    381         <tr>
    382           <td class="memname"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>* tinyxml2::XMLNode::InsertEndChild </td>
    383           <td>(</td>
    384           <td class="paramtype"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td>
    385           <td class="paramname"><em>addThis</em></td><td>)</td>
    386           <td></td>
    387         </tr>
    388       </table>
    389 </div><div class="memdoc">
    390 <p>Add a child node as the last (right) child. If the child node is already part of the document, it is moved from its old location to the new location. Returns the addThis argument or 0 if the node does not belong to the same document. </p>
    391 
    392 </div>
    393 </div>
    394 <a id="a8ff7dc071f3a1a6ae2ac25a37492865d"></a>
    395 <h2 class="memtitle"><span class="permalink"><a href="#a8ff7dc071f3a1a6ae2ac25a37492865d">&#9670;&nbsp;</a></span>InsertFirstChild()</h2>
    396 
    397 <div class="memitem">
    398 <div class="memproto">
    399       <table class="memname">
    400         <tr>
    401           <td class="memname"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>* tinyxml2::XMLNode::InsertFirstChild </td>
    402           <td>(</td>
    403           <td class="paramtype"><a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td>
    404           <td class="paramname"><em>addThis</em></td><td>)</td>
    405           <td></td>
    406         </tr>
    407       </table>
    408 </div><div class="memdoc">
    409 <p>Add a child node as the first (left) child. If the child node is already part of the document, it is moved from its old location to the new location. Returns the addThis argument or 0 if the node does not belong to the same document. </p>
    410 
    411 </div>
    412 </div>
    413 <a id="a173e9d1341bc56992e2d320a35936551"></a>
    414 <h2 class="memtitle"><span class="permalink"><a href="#a173e9d1341bc56992e2d320a35936551">&#9670;&nbsp;</a></span>LastChildElement()</h2>
    415 
    416 <div class="memitem">
    417 <div class="memproto">
    418       <table class="memname">
    419         <tr>
    420           <td class="memname">const <a class="el" href="classtinyxml2_1_1_x_m_l_element.html">XMLElement</a>* tinyxml2::XMLNode::LastChildElement </td>
    421           <td>(</td>
    422           <td class="paramtype">const char *&#160;</td>
    423           <td class="paramname"><em>name</em> = <code>0</code></td><td>)</td>
    424           <td> const</td>
    425         </tr>
    426       </table>
    427 </div><div class="memdoc">
    428 <p>Get the last child element or optionally the last child element with the specified name. </p>
    429 
    430 </div>
    431 </div>
    432 <a id="a002978fc889cc011d143185f2377eca2"></a>
    433 <h2 class="memtitle"><span class="permalink"><a href="#a002978fc889cc011d143185f2377eca2">&#9670;&nbsp;</a></span>SetUserData()</h2>
    434 
    435 <div class="memitem">
    436 <div class="memproto">
    437 <table class="mlabels">
    438   <tr>
    439   <td class="mlabels-left">
    440       <table class="memname">
    441         <tr>
    442           <td class="memname">void tinyxml2::XMLNode::SetUserData </td>
    443           <td>(</td>
    444           <td class="paramtype">void *&#160;</td>
    445           <td class="paramname"><em>userData</em></td><td>)</td>
    446           <td></td>
    447         </tr>
    448       </table>
    449   </td>
    450   <td class="mlabels-right">
    451 <span class="mlabels"><span class="mlabel">inline</span></span>  </td>
    452   </tr>
    453 </table>
    454 </div><div class="memdoc">
    455 <p>Set user data into the <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>. TinyXML-2 in no way processes or interprets user data. It is initially 0. </p>
    456 
    457 </div>
    458 </div>
    459 <a id="a09dd68cf9eae137579f6e50f36487513"></a>
    460 <h2 class="memtitle"><span class="permalink"><a href="#a09dd68cf9eae137579f6e50f36487513">&#9670;&nbsp;</a></span>SetValue()</h2>
    461 
    462 <div class="memitem">
    463 <div class="memproto">
    464       <table class="memname">
    465         <tr>
    466           <td class="memname">void tinyxml2::XMLNode::SetValue </td>
    467           <td>(</td>
    468           <td class="paramtype">const char *&#160;</td>
    469           <td class="paramname"><em>val</em>, </td>
    470         </tr>
    471         <tr>
    472           <td class="paramkey"></td>
    473           <td></td>
    474           <td class="paramtype">bool&#160;</td>
    475           <td class="paramname"><em>staticMem</em> = <code>false</code>&#160;</td>
    476         </tr>
    477         <tr>
    478           <td></td>
    479           <td>)</td>
    480           <td></td><td></td>
    481         </tr>
    482       </table>
    483 </div><div class="memdoc">
    484 <p>Set the Value of an XML node. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classtinyxml2_1_1_x_m_l_node.html#a66344989a4b436155bcda72bd6b07b82">Value()</a> </dd></dl>
    485 
    486 </div>
    487 </div>
    488 <a id="a8402cbd3129d20e9e6024bbcc0531283"></a>
    489 <h2 class="memtitle"><span class="permalink"><a href="#a8402cbd3129d20e9e6024bbcc0531283">&#9670;&nbsp;</a></span>ShallowClone()</h2>
    490 
    491 <div class="memitem">
    492 <div class="memproto">
    493 <table class="mlabels">
    494   <tr>
    495   <td class="mlabels-left">
    496       <table class="memname">
    497         <tr>
    498           <td class="memname">virtual <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a>* tinyxml2::XMLNode::ShallowClone </td>
    499           <td>(</td>
    500           <td class="paramtype"><a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a> *&#160;</td>
    501           <td class="paramname"><em>document</em></td><td>)</td>
    502           <td> const</td>
    503         </tr>
    504       </table>
    505   </td>
    506   <td class="mlabels-right">
    507 <span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
    508   </tr>
    509 </table>
    510 </div><div class="memdoc">
    511 <p>Make a copy of this node, but not its children. You may pass in a Document pointer that will be the owner of the new Node. If the 'document' is null, then the node returned will be allocated from the current Document. (this-&gt;<a class="el" href="classtinyxml2_1_1_x_m_l_node.html#af343d1ef0b45c0020e62d784d7e67a68" title="Get the XMLDocument that owns this XMLNode. ">GetDocument()</a>)</p>
    512 <p>Note: if called on a <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a>, this will return null. </p>
    513 
    514 <p>Implemented in <a class="el" href="classtinyxml2_1_1_x_m_l_document.html#aa37cc1709d7e1e988bc17dcfb24a69b8">tinyxml2::XMLDocument</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_element.html#ac035742d68b0c50c3f676374e59fe750">tinyxml2::XMLElement</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_unknown.html#a0125f41c89763dea06619b5fd5246b4c">tinyxml2::XMLUnknown</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_declaration.html#a118d47518dd9e522644e42efa259aed7">tinyxml2::XMLDeclaration</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_comment.html#a08991cc63fadf7e95078ac4f9ea1b073">tinyxml2::XMLComment</a>, and <a class="el" href="classtinyxml2_1_1_x_m_l_text.html#af3a81ed4dd49d5151c477b3f265a3011">tinyxml2::XMLText</a>.</p>
    515 
    516 </div>
    517 </div>
    518 <a id="a7ce18b751c3ea09eac292dca264f9226"></a>
    519 <h2 class="memtitle"><span class="permalink"><a href="#a7ce18b751c3ea09eac292dca264f9226">&#9670;&nbsp;</a></span>ShallowEqual()</h2>
    520 
    521 <div class="memitem">
    522 <div class="memproto">
    523 <table class="mlabels">
    524   <tr>
    525   <td class="mlabels-left">
    526       <table class="memname">
    527         <tr>
    528           <td class="memname">virtual bool tinyxml2::XMLNode::ShallowEqual </td>
    529           <td>(</td>
    530           <td class="paramtype">const <a class="el" href="classtinyxml2_1_1_x_m_l_node.html">XMLNode</a> *&#160;</td>
    531           <td class="paramname"><em>compare</em></td><td>)</td>
    532           <td> const</td>
    533         </tr>
    534       </table>
    535   </td>
    536   <td class="mlabels-right">
    537 <span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
    538   </tr>
    539 </table>
    540 </div><div class="memdoc">
    541 <p>Test if 2 nodes are the same, but don't test children. The 2 nodes do not need to be in the same Document.</p>
    542 <p>Note: if called on a <a class="el" href="classtinyxml2_1_1_x_m_l_document.html">XMLDocument</a>, this will return false. </p>
    543 
    544 <p>Implemented in <a class="el" href="classtinyxml2_1_1_x_m_l_document.html#a6fe5ef18699091844fcf64b56ffa5bf9">tinyxml2::XMLDocument</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_element.html#ad9ea913a460b48979bd83cf9871c99f6">tinyxml2::XMLElement</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_unknown.html#a0715ab2c05d7f74845c188122213b116">tinyxml2::XMLUnknown</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_declaration.html#aa26b70011694e9b9e9480b929e9b78d6">tinyxml2::XMLDeclaration</a>, <a class="el" href="classtinyxml2_1_1_x_m_l_comment.html#a6f7d227b25afa8cc3c763b7cc8833739">tinyxml2::XMLComment</a>, and <a class="el" href="classtinyxml2_1_1_x_m_l_text.html#ae0fff8a24e2de7eb073fd192e9db0331">tinyxml2::XMLText</a>.</p>
    545 
    546 </div>
    547 </div>
    548 <a id="a66344989a4b436155bcda72bd6b07b82"></a>
    549 <h2 class="memtitle"><span class="permalink"><a href="#a66344989a4b436155bcda72bd6b07b82">&#9670;&nbsp;</a></span>Value()</h2>
    550 
    551 <div class="memitem">
    552 <div class="memproto">
    553       <table class="memname">
    554         <tr>
    555           <td class="memname">const char* tinyxml2::XMLNode::Value </td>
    556           <td>(</td>
    557           <td class="paramname"></td><td>)</td>
    558           <td> const</td>
    559         </tr>
    560       </table>
    561 </div><div class="memdoc">
    562 <p>The meaning of 'value' changes for the specific type. </p><pre class="fragment">Document:   empty (NULL is returned, not an empty string)
    563 Element:    name of the element
    564 Comment:    the comment text
    565 Unknown:    the tag contents
    566 Text:       the text string
    567 </pre> 
    568 </div>
    569 </div>
    570 <hr/>The documentation for this class was generated from the following file:<ul>
    571 <li><a class="el" href="tinyxml2_8h_source.html">tinyxml2.h</a></li>
    572 </ul>
    573 </div><!-- contents -->
    574 <!-- start footer part -->
    575 <hr class="footer"/><address class="footer"><small>
    576 Generated on Tue Nov 6 2018 09:38:26 for TinyXML-2 by &#160;<a href="http://www.doxygen.org/index.html">
    577 <img class="footer" src="doxygen.png" alt="doxygen"/>
    578 </a> 1.8.13
    579 </small></address>
    580 </body>
    581 </html>
    582