<!-- iframe showing the search results (closed by default) -->
<divid="MSearchResultsWindow">
<iframesrc="javascript:void(0)"frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<divclass="header">
<divclass="headertitle">
<divclass="title">Parse an XML from char buffer </div></div>
</div><!--header-->
<divclass="contents">
<divclass="textblock"> Basic XML string parsing. The basic syntax to parse an XML for a char* and check for an error. (ErrorID() will return 0 for no error.) <divclass="fragment"><divclass="line"><spanclass="keywordtype">int</span> example_2()</div><divclass="line">{</div><divclass="line"><spanclass="keyword">static</span><spanclass="keyword">const</span><spanclass="keywordtype">char</span>* xml = <spanclass="stringliteral">"<element/>"</span>;</div><divclass="line"> XMLDocument doc;</div><divclass="line"> doc.Parse( xml );</div><divclass="line"></div><divclass="line"><spanclass="keywordflow">return</span> doc.ErrorID();</div><divclass="line">}</div></div><!-- fragment --></p>