⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classtixmlnode.html

📁 xml文件处理多平台类
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</table><a name="a18" doxytag="TiXmlNode::InsertAfterChild"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> TiXmlNode* TiXmlNode::InsertAfterChild </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TiXmlNode *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>afterThis</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const TiXmlNode &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>addThis</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a new node related to this.<p>Adds a child after the specified child. Returns a pointer to the new object or NULL if an error occured.     </td>  </tr></table><a name="a17" doxytag="TiXmlNode::InsertBeforeChild"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> TiXmlNode* TiXmlNode::InsertBeforeChild </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TiXmlNode *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>beforeThis</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const TiXmlNode &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>addThis</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a new node related to this.<p>Adds a child before the specified child. Returns a pointer to the new object or NULL if an error occured.     </td>  </tr></table><a name="a15" doxytag="TiXmlNode::InsertEndChild"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> TiXmlNode* TiXmlNode::InsertEndChild </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TiXmlNode &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>addThis</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a new node related to this.<p>Adds a child past the LastChild. Returns a pointer to the new object or NULL if an error occured.     </td>  </tr></table><a name="a12" doxytag="TiXmlNode::IterateChildren"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> TiXmlNode* TiXmlNode::IterateChildren </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TiXmlNode *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>previous</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>An alternate way to walk the children of a node.<p>One way to iterate over nodes is: <div class="fragment"><pre>            for( child = parent-&gt;FirstChild(); child; child = child-&gt;NextSibling() )        </pre></div><p>IterateChildren does the same thing with the syntax: <div class="fragment"><pre>            child = 0;            while( child = parent-&gt;IterateChildren( child ) )        </pre></div><p>IterateChildren takes the previous child as input and finds the next one. If the previous child is null, it returns the first. IterateChildren will return null when done.     </td>  </tr></table><a name="a16" doxytag="TiXmlNode::LinkEndChild"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> TiXmlNode* TiXmlNode::LinkEndChild </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TiXmlNode *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>addThis</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a new node related to this.<p>Adds a child past the LastChild.<p>NOTE: the node to be added is passed by pointer, and will be henceforth owned (and deleted) by tinyXml. This method is efficient and avoids an extra copy, but should be used with care as it uses a different memory model than the other insert functions.<p><dl compact><dt><b>See also: </b></dt><dd><a class="el" href="classTiXmlNode.html#a15">InsertEndChild</a> </dl>    </td>  </tr></table><a name="a28" doxytag="TiXmlNode::NextSiblingElement"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classTiXmlElement.html">TiXmlElement</a>* TiXmlNode::NextSiblingElement </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Convenience function to get through elements.<p>Calls NextSibling and ToElement. Will skip all non-Element nodes. Returns 0 if there is not another element.     </td>  </tr></table><a name="a27" doxytag="TiXmlNode::NextSiblingElement"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classTiXmlElement.html">TiXmlElement</a>* TiXmlNode::NextSiblingElement </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Convenience function to get through elements.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -