📄 classtixmlnode.html
字号:
<p>Calls NextSibling and ToElement. Will skip all non-Element nodes. Returns 0 if there is not another element. </td> </tr></table><a name="a19" doxytag="TiXmlNode::ReplaceChild"></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::ReplaceChild </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TiXmlNode * </td> <td class="mdname" nowrap> <em>replaceThis</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const TiXmlNode & </td> <td class="mdname" nowrap> <em>withThis</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Replace a child of this node.<p>Returns a pointer to the new object or NULL if an error occured. </td> </tr></table><a name="a2" doxytag="TiXmlNode::SetValue"></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"> void TiXmlNode::SetValue </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>_value</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Changes the value of the node.<p>Defined as: <div class="fragment"><pre> Document: filename of the xml file Element: name of the element Comment: the comment text Unknown: the tag contents Text: the text string </pre></div> </td> </tr></table><a name="a33" doxytag="TiXmlNode::Type"></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"> virtual int TiXmlNode::Type </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Query the type (as an enumerated value, above) of this node.<p>The possible types are: DOCUMENT, ELEMENT, COMMENT, UNKNOWN, TEXT, and DECLARATION. </td> </tr></table><a name="a1" doxytag="TiXmlNode::Value"></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"> const char* TiXmlNode::Value </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>The meaning of 'value' changes for the specific type of TiXmlNode.<p><div class="fragment"><pre> Document: filename of the xml file Element: name of the element Comment: the comment text Unknown: the tag contents Text: the text string </pre></div><p>The subclasses will wrap this function. </td> </tr></table><hr><h2>Friends And Related Function Documentation</h2><a name="l3" doxytag="TiXmlNode::operator<<"></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"> std::ostream& operator<< </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::ostream & </td> <td class="mdname" nowrap> <em>out</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const TiXmlNode & </td> <td class="mdname" nowrap> <em>base</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>An output stream operator, for every class.<p>Note that this outputs without any newlines or formatting, as opposed to <a class="el" href="classTiXmlBase.html#a2">Print()</a>, which includes tabs and new lines.<p>The operator<< and operator>> are not completely symmetric. Writing a node to a stream is very well defined. You'll get a nice stream of output, without any extra whitespace or newlines.<p>But reading is not as well defined. (As it always is.) If you create a <a class="el" href="classTiXmlElement.html">TiXmlElement</a> (for example) and read that from an input stream, the text needs to define an element or junk will result. This is true of all input streams, but it's worth keeping in mind.<p>A <a class="el" href="classTiXmlDocument.html">TiXmlDocument</a> will read nodes until it reads a root element, and all the children of that root element. </td> </tr></table><a name="l2" doxytag="TiXmlNode::operator>>"></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"> std::istream& operator>> </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::istream & </td> <td class="mdname" nowrap> <em>in</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>TiXmlNode & </td> <td class="mdname" nowrap> <em>base</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>An input stream operator, for every class.<p>Tolerant of newlines and formatting, but doesn't expect them. </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="tinyxml_8h-source.html">tinyxml.h</a></ul><hr><address style="align: right;"><small>Generated on Sun Aug 1 12:06:34 2004 for TinyXml by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -