<center><fontsize="2">[<ahref="graph_legend.html">legend</a>]</font></center>Collaboration diagram for pugi::xml_document:<p><center><imgsrc="classpugi_1_1xml__document__coll__graph.png"border="0"usemap="#pugi_1_1xml__document__coll__map"alt="Collaboration graph"></center>
<center><fontsize="2">[<ahref="graph_legend.html">legend</a>]</font></center><ahref="classpugi_1_1xml__document-members.html">List of all members.</a><hr><aname="_details"></a><h2>Detailed Description</h2>
Document class (DOM tree root).
<p>
This class has noncopyable semantics (private copy ctor/assignment operator).
<p>
<tableborder="0"cellpadding="0"cellspacing="0">
<tr><td></td></tr>
<tr><tdcolspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><tdclass="memItemLeft"nowrapalign="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classpugi_1_1xml__document.html#ea4dd8757cc94d3b262674609315afdd">load</a> (std::istream &stream, unsigned int options=<aclass="el"href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Load document from stream. <ahref="#ea4dd8757cc94d3b262674609315afdd"></a><br></td></tr>
<tr><tdclass="memItemLeft"nowrapalign="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classpugi_1_1xml__document.html#77501ece75c709bfb4e479d7cf5f92e3">load</a> (const char *contents, unsigned int options=<aclass="el"href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Load document from string. <ahref="#77501ece75c709bfb4e479d7cf5f92e3"></a><br></td></tr>
<tr><tdclass="memItemLeft"nowrapalign="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classpugi_1_1xml__document.html#0362034d3715646568869514dbf8f419">load_file</a> (const char *name, unsigned int options=<aclass="el"href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Load document from file. <ahref="#0362034d3715646568869514dbf8f419"></a><br></td></tr>
<tr><tdclass="memItemLeft"nowrapalign="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classpugi_1_1xml__document.html#6df96142a186efcbd14a496cd1d54c71">parse</a> (char *xmlstr, unsigned int options=<aclass="el"href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Parse the given XML string in-situ. <ahref="#6df96142a186efcbd14a496cd1d54c71"></a><br></td></tr>
<tr><tdclass="memItemLeft"nowrapalign="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classpugi_1_1xml__document.html#2742c9acf467f0d3e2651c25bed76634">parse</a> (const <aclass="el"href="structpugi_1_1transfer__ownership__tag.html">transfer_ownership_tag</a>&, char *xmlstr, unsigned int options=<aclass="el"href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Parse the given XML string in-situ (gains ownership). <ahref="#2742c9acf467f0d3e2651c25bed76634"></a><br></td></tr>
<tr><tdclass="memItemLeft"nowrapalign="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classpugi_1_1xml__document.html#716c23429fcac408ee1073353056485d">save_file</a> (const char *name, const char *indent="\t", unsigned int flags=<aclass="el"href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a>)</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Save XML to file. <ahref="#716c23429fcac408ee1073353056485d"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Compute document order for the whole tree Sometimes this makes evaluation of XPath queries faster. <br></td></tr>
</table>
<hr><h2>Member Function Documentation</h2>
<aclass="anchor"name="ea4dd8757cc94d3b262674609315afdd"></a><!-- doxytag: member="pugi::xml_document::load" ref="ea4dd8757cc94d3b262674609315afdd" args="(std::istream &stream, unsigned int options=parse_default)" --><p>
The string is modified; you should ensure that string data will persist throughout the document's lifetime. Although, document does not gain ownership over the string, so you should free the memory occupied by it manually.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>xmlstr</em> </td><td>- readwrite string with xml data </td></tr>
Parse the given XML string in-situ (gains ownership).
<p>
The string is modified; document gains ownership over the string, so you don't have to worry about it's lifetime. Call example: doc.parse(transfer_ownership_tag(), string, options);<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>xmlstr</em> </td><td>- readwrite string with xml data </td></tr>