update the docs

This commit is contained in:
Lee Thomason
2021-05-15 20:28:24 -07:00
parent 9c6752a641
commit 3291390336
173 changed files with 3123 additions and 3043 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TinyXML-2: Get information out of XML</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">TinyXML-2
&#160;<span id="projectnumber">8.0.0</span>
&#160;<span id="projectnumber">8.1.0</span>
</div>
</td>
</tr>
@@ -30,10 +30,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@@ -76,7 +76,7 @@ $(function() {
<div class="line"> <span class="stringliteral">&quot;&lt;PLAY&gt;&quot;</span></div>
<div class="line"> <span class="stringliteral">&quot;&lt;TITLE&gt;A Midsummer Night&#39;s Dream&lt;/TITLE&gt;&quot;</span></div>
<div class="line"> <span class="stringliteral">&quot;&lt;/PLAY&gt;&quot;</span>;</div>
</div><!-- fragment --><p>The structure of the XML file is:</p>
</div><!-- fragment --><p> The structure of the XML file is:</p>
<ul>
<li>
(declaration) </li>
@@ -100,24 +100,22 @@ Text "A Midsummer Night's Dream" </li>
<div class="line"> doc.Parse( xml );</div>
<div class="line"> </div>
<div class="line"> XMLElement* titleElement = doc.FirstChildElement( <span class="stringliteral">&quot;PLAY&quot;</span> )-&gt;FirstChildElement( <span class="stringliteral">&quot;TITLE&quot;</span> );</div>
</div><!-- fragment --><p>We can then use the convenience function GetText() to get the title of the play.</p>
</div><!-- fragment --><p> We can then use the convenience function GetText() to get the title of the play.</p>
<div class="fragment"><div class="line"> <span class="keyword">const</span> <span class="keywordtype">char</span>* title = titleElement-&gt;GetText();</div>
<div class="line"> printf( <span class="stringliteral">&quot;Name of play (1): %s\n&quot;</span>, title );</div>
</div><!-- fragment --><p>Text is just another Node in the XML DOM. And in fact you should be a little cautious with it, as text nodes can contain elements.</p>
</div><!-- fragment --><p> Text is just another Node in the XML DOM. And in fact you should be a little cautious with it, as text nodes can contain elements.</p>
<pre class="fragment">Consider: A Midsummer Night's &lt;b&gt;Dream&lt;/b&gt;
</pre><p>It is more correct to actually query the Text Node if in doubt:</p>
<div class="fragment"><div class="line"> </div>
<div class="line"> XMLText* textNode = titleElement-&gt;FirstChild()-&gt;ToText();</div>
<div class="line"> title = textNode-&gt;Value();</div>
<div class="line"> printf( <span class="stringliteral">&quot;Name of play (2): %s\n&quot;</span>, title );</div>
</div><!-- fragment --><p>Noting that here we use FirstChild() since we are looking for XMLText, not an element, and ToText() is a cast from a Node to a XMLText. </p>
</div><!-- fragment --><p> Noting that here we use FirstChild() since we are looking for XMLText, not an element, and ToText() is a cast from a Node to a XMLText. </p>
</div></div><!-- contents -->
</div><!-- PageDoc -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Jun 13 2020 19:01:40 for TinyXML-2 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
Generated on Sat May 15 2021 20:26:18 for TinyXML-2 by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>