Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-release > by-pkgid > 8594b6a9177d4b36b71e1fccfb3d02cf > files > 90

lib64xml++2.6-devel-2.40.1-2.mga6.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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.9.1"/>
<title>libxml++: xmlpp::Document Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libxml++
   &#160;<span id="projectnumber">2.40.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacexmlpp.html">xmlpp</a></li><li class="navelem"><a class="el" href="classxmlpp_1_1Document.html">Document</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classxmlpp_1_1Document-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">xmlpp::Document Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Represents an XML document in the DOM model.  
 <a href="classxmlpp_1_1Document.html#details">More...</a></p>

<p><code>#include &lt;libxml++/document.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for xmlpp::Document:</div>
<div class="dyncontent">
<div class="center"><img src="classxmlpp_1_1Document__inherit__graph.png" border="0" usemap="#xmlpp_1_1Document_inherit__map" alt="Inheritance graph"/></div>
<map name="xmlpp_1_1Document_inherit__map" id="xmlpp_1_1Document_inherit__map">
<area shape="rect" id="node2" href="classxmlpp_1_1NonCopyable.html" title="A base for classes which cannot be copied. " alt="" coords="5,5,160,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8c5c6692e195dcf3aee88dc492f9efed"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a8c5c6692e195dcf3aee88dc492f9efed">Document</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; version=&quot;1.0&quot;)</td></tr>
<tr class="memdesc:a8c5c6692e195dcf3aee88dc492f9efed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new document.  <a href="#a8c5c6692e195dcf3aee88dc492f9efed">More...</a><br /></td></tr>
<tr class="separator:a8c5c6692e195dcf3aee88dc492f9efed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac18dbf6e4c404dac08a0784c553c5e88"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ac18dbf6e4c404dac08a0784c553c5e88">Document</a> (_xmlDoc* doc)</td></tr>
<tr class="memdesc:ac18dbf6e4c404dac08a0784c553c5e88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new C++ wrapper for an xmlDoc struct.  <a href="#ac18dbf6e4c404dac08a0784c553c5e88">More...</a><br /></td></tr>
<tr class="separator:ac18dbf6e4c404dac08a0784c553c5e88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee0af647f8b997f0ce91c5f8ef26d6f5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#aee0af647f8b997f0ce91c5f8ef26d6f5">~Document</a> () override</td></tr>
<tr class="separator:aee0af647f8b997f0ce91c5f8ef26d6f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d5ebd0f41215d54b9c96dd4ddb49ede"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a2d5ebd0f41215d54b9c96dd4ddb49ede">add_comment</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; content)</td></tr>
<tr class="memdesc:a2d5ebd0f41215d54b9c96dd4ddb49ede"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append a new comment node.  <a href="#a2d5ebd0f41215d54b9c96dd4ddb49ede">More...</a><br /></td></tr>
<tr class="separator:a2d5ebd0f41215d54b9c96dd4ddb49ede"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeaa438c9764e7d41f3d2f63ace6dab81"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1ProcessingInstructionNode.html">ProcessingInstructionNode</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#aeaa438c9764e7d41f3d2f63ace6dab81">add_processing_instruction</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; name, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; content)</td></tr>
<tr class="memdesc:aeaa438c9764e7d41f3d2f63ace6dab81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append a new processing instruction node.  <a href="#aeaa438c9764e7d41f3d2f63ace6dab81">More...</a><br /></td></tr>
<tr class="separator:aeaa438c9764e7d41f3d2f63ace6dab81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ebb73b9ac51ca929bfd38f359964a59"><td class="memItemLeft" align="right" valign="top">_xmlDoc*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a1ebb73b9ac51ca929bfd38f359964a59">cobj</a> ()</td></tr>
<tr class="memdesc:a1ebb73b9ac51ca929bfd38f359964a59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access the underlying libxml implementation.  <a href="#a1ebb73b9ac51ca929bfd38f359964a59">More...</a><br /></td></tr>
<tr class="separator:a1ebb73b9ac51ca929bfd38f359964a59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cbdce4b14db6b3a393346b5e3034886"><td class="memItemLeft" align="right" valign="top">const _xmlDoc*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a4cbdce4b14db6b3a393346b5e3034886">cobj</a> () const </td></tr>
<tr class="memdesc:a4cbdce4b14db6b3a393346b5e3034886"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access the underlying libxml implementation.  <a href="#a4cbdce4b14db6b3a393346b5e3034886">More...</a><br /></td></tr>
<tr class="separator:a4cbdce4b14db6b3a393346b5e3034886"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8552403b511567241856148a6040be23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a8552403b511567241856148a6040be23">create_root_node</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; name, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; ns_uri=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>(), const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; ns_prefix=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:a8552403b511567241856148a6040be23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the root element node.  <a href="#a8552403b511567241856148a6040be23">More...</a><br /></td></tr>
<tr class="separator:a8552403b511567241856148a6040be23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8085d5e40537e2a674063cbddb39f0b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a8085d5e40537e2a674063cbddb39f0b8">create_root_node_by_import</a> (const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* node, bool recursive=true)</td></tr>
<tr class="memdesc:a8085d5e40537e2a674063cbddb39f0b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a root element node by importing the node from another document, without affecting the source node.  <a href="#a8085d5e40537e2a674063cbddb39f0b8">More...</a><br /></td></tr>
<tr class="separator:a8085d5e40537e2a674063cbddb39f0b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9527fadaffff6138b0b35050370a0e3d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a9527fadaffff6138b0b35050370a0e3d">get_encoding</a> () const </td></tr>
<tr class="separator:a9527fadaffff6138b0b35050370a0e3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae27fb04b1760bcaa58f7e329c98fae47"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Dtd.html">Dtd</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ae27fb04b1760bcaa58f7e329c98fae47">get_internal_subset</a> () const </td></tr>
<tr class="memdesc:ae27fb04b1760bcaa58f7e329c98fae47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the internal subset of this document.  <a href="#ae27fb04b1760bcaa58f7e329c98fae47">More...</a><br /></td></tr>
<tr class="separator:ae27fb04b1760bcaa58f7e329c98fae47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f4ebd0db42eeca823517dd1bd56d009"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a6f4ebd0db42eeca823517dd1bd56d009">get_root_node</a> () const </td></tr>
<tr class="memdesc:a6f4ebd0db42eeca823517dd1bd56d009"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the root node.  <a href="#a6f4ebd0db42eeca823517dd1bd56d009">More...</a><br /></td></tr>
<tr class="separator:a6f4ebd0db42eeca823517dd1bd56d009"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fb6c31ae2563c1c33ad3d4192daafe1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a5fb6c31ae2563c1c33ad3d4192daafe1">process_xinclude</a> (bool generate_xinclude_nodes=true)</td></tr>
<tr class="memdesc:a5fb6c31ae2563c1c33ad3d4192daafe1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform XInclude substitution on the XML document.  <a href="#a5fb6c31ae2563c1c33ad3d4192daafe1">More...</a><br /></td></tr>
<tr class="separator:a5fb6c31ae2563c1c33ad3d4192daafe1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad56a99bd883672ba5eac51a545fada40"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ad56a99bd883672ba5eac51a545fada40">set_entity_declaration</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; name, <a class="el" href="namespacexmlpp.html#a0fa47f0fb103cf9ea460a2fef3f5be49">XmlEntityType</a> <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib_1_1Unicode.html#a042d1c3fdb1a22daf647211210af80c3">type</a>, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; publicId, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; systemId, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; content)</td></tr>
<tr class="memdesc:ad56a99bd883672ba5eac51a545fada40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an Entity declaration to the document.  <a href="#ad56a99bd883672ba5eac51a545fada40">More...</a><br /></td></tr>
<tr class="separator:ad56a99bd883672ba5eac51a545fada40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a714dc6c330ae6e00fb285606b8b849a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a714dc6c330ae6e00fb285606b8b849a4">set_internal_subset</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; name, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; external_id, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; system_id)</td></tr>
<tr class="memdesc:a714dc6c330ae6e00fb285606b8b849a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the internal subset of this document.  <a href="#a714dc6c330ae6e00fb285606b8b849a4">More...</a><br /></td></tr>
<tr class="separator:a714dc6c330ae6e00fb285606b8b849a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbbcae29bde29501f3dfff71f2e81da2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#adbbcae29bde29501f3dfff71f2e81da2">write_to_file</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; filename, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; encoding=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:adbbcae29bde29501f3dfff71f2e81da2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the document to a file.  <a href="#adbbcae29bde29501f3dfff71f2e81da2">More...</a><br /></td></tr>
<tr class="separator:adbbcae29bde29501f3dfff71f2e81da2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae54075502d81e9d8448e6820bc16eb34"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ae54075502d81e9d8448e6820bc16eb34">write_to_file_formatted</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; filename, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; encoding=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:ae54075502d81e9d8448e6820bc16eb34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the document to a file.  <a href="#ae54075502d81e9d8448e6820bc16eb34">More...</a><br /></td></tr>
<tr class="separator:ae54075502d81e9d8448e6820bc16eb34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55e593694bdcf67f667f1dbe52cd0794"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a55e593694bdcf67f667f1dbe52cd0794">write_to_stream</a> (<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>&amp; output, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; encoding=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:a55e593694bdcf67f667f1dbe52cd0794"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the document to a <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>.  <a href="#a55e593694bdcf67f667f1dbe52cd0794">More...</a><br /></td></tr>
<tr class="separator:a55e593694bdcf67f667f1dbe52cd0794"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add90b2d2d0a837df3f3daec6bccaad2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#add90b2d2d0a837df3f3daec6bccaad2c">write_to_stream_formatted</a> (<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>&amp; output, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; encoding=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:add90b2d2d0a837df3f3daec6bccaad2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the document to a <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>.  <a href="#add90b2d2d0a837df3f3daec6bccaad2c">More...</a><br /></td></tr>
<tr class="separator:add90b2d2d0a837df3f3daec6bccaad2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab63344d932c309062769fd98585e9bc1"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ab63344d932c309062769fd98585e9bc1">write_to_string</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; encoding=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:ab63344d932c309062769fd98585e9bc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the document to the memory.  <a href="#ab63344d932c309062769fd98585e9bc1">More...</a><br /></td></tr>
<tr class="separator:ab63344d932c309062769fd98585e9bc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1246acf8c7b51855e9eb12eecefa294"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ac1246acf8c7b51855e9eb12eecefa294">write_to_string_formatted</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; encoding=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:ac1246acf8c7b51855e9eb12eecefa294"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the document to the memory.  <a href="#ac1246acf8c7b51855e9eb12eecefa294">More...</a><br /></td></tr>
<tr class="separator:ac1246acf8c7b51855e9eb12eecefa294"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a6772b76ee685c3755f8a19ce19f48f35"><td class="memItemLeft" align="right" valign="top">_xmlEntity*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a6772b76ee685c3755f8a19ce19f48f35">get_entity</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; name)</td></tr>
<tr class="memdesc:a6772b76ee685c3755f8a19ce19f48f35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve an Entity.  <a href="#a6772b76ee685c3755f8a19ce19f48f35">More...</a><br /></td></tr>
<tr class="separator:a6772b76ee685c3755f8a19ce19f48f35"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents an XML document in the DOM model. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8c5c6692e195dcf3aee88dc492f9efed"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">xmlpp::Document::Document </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>version</em> = <code>&quot;1.0&quot;</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new document. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">version</td><td>XML version. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td>If memory allocation fails. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac18dbf6e4c404dac08a0784c553c5e88"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">xmlpp::Document::Document </td>
          <td>(</td>
          <td class="paramtype">_xmlDoc *&#160;</td>
          <td class="paramname"><em>doc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new C++ wrapper for an xmlDoc struct. </p>
<p>The created <a class="el" href="classxmlpp_1_1Document.html" title="Represents an XML document in the DOM model. ">xmlpp::Document</a> takes ownership of the xmlDoc. When the <a class="el" href="classxmlpp_1_1Document.html" title="Represents an XML document in the DOM model. ">Document</a> is deleted, so is the xmlDoc and all its nodes. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">doc</td><td>A pointer to an xmlDoc struct. Must not be <code>nullptr</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aee0af647f8b997f0ce91c5f8ef26d6f5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">xmlpp::Document::~Document </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a2d5ebd0f41215d54b9c96dd4ddb49ede"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* xmlpp::Document::add_comment </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>content</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Append a new comment node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">content</td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node. ">ContentNode::set_content()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The new comment node. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aeaa438c9764e7d41f3d2f63ace6dab81"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classxmlpp_1_1ProcessingInstructionNode.html">ProcessingInstructionNode</a>* xmlpp::Document::add_processing_instruction </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>content</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Append a new processing instruction node. </p>
<dl class="since_2_36"><dt><b><a class="el" href="since_2_36.html#_since_2_36000003">Since libxml++ 2.36:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The name of the application to which the instruction is directed. </td></tr>
    <tr><td class="paramname">content</td><td>The content of the instruction. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node. ">ContentNode::set_content()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The new processing instruction node. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1ebb73b9ac51ca929bfd38f359964a59"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_xmlDoc* xmlpp::Document::cobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Access the underlying libxml implementation. </p>

</div>
</div>
<a class="anchor" id="a4cbdce4b14db6b3a393346b5e3034886"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const _xmlDoc* xmlpp::Document::cobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Access the underlying libxml implementation. </p>

</div>
</div>
<a class="anchor" id="a8552403b511567241856148a6040be23"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::create_root_node </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>ns_uri</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>ns_prefix</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create the root element node. </p>
<p>If the document already contains a root element node, it is replaced, and the old root element node and all its descendants are deleted. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The node's name. </td></tr>
    <tr><td class="paramname">ns_uri</td><td>The namespace URI. A namespace declaration will be added to this node, because it could not have been declared before. </td></tr>
    <tr><td class="paramname">ns_prefix</td><td>The namespace prefix to associate with the namespace. If no namespace prefix is specified then the namespace URI will be the default namespace. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the new root node. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td>If memory allocation fails. </td></tr>
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td>If a new namespace node cannot be created. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8085d5e40537e2a674063cbddb39f0b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::create_root_node_by_import </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classxmlpp_1_1Node.html">Node</a>*&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>recursive</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a root element node by importing the node from another document, without affecting the source node. </p>
<p>If the document already contains a root element node, it is replaced, and the old root element node and all its descendants are deleted. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">node</td><td>The node to copy and insert as the root node of the document. It must be an element node. </td></tr>
    <tr><td class="paramname">recursive</td><td>Whether to import the child nodes also. Defaults to true. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the new root node </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td>If the node can't be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9527fadaffff6138b0b35050370a0e3d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::get_encoding </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The encoding used in the source from which the document has been loaded. </dd></dl>

</div>
</div>
<a class="anchor" id="a6772b76ee685c3755f8a19ce19f48f35"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">_xmlEntity* xmlpp::Document::get_entity </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve an Entity. </p>
<p>The entity can be from an external subset or internally declared. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The name of the entity to get. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the libxml2 entity structure, or <code>nullptr</code> if not found. </dd></dl>

</div>
</div>
<a class="anchor" id="ae27fb04b1760bcaa58f7e329c98fae47"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classxmlpp_1_1Dtd.html">Dtd</a>* xmlpp::Document::get_internal_subset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the internal subset of this document. </p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the DTD, or <code>nullptr</code> if not found. </dd></dl>

</div>
</div>
<a class="anchor" id="a6f4ebd0db42eeca823517dd1bd56d009"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::get_root_node </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the root node. </p>
<p>This function does <b>not</b> create a default root node if it doesn't exist. </p><dl class="section return"><dt>Returns</dt><dd>A pointer to the root node if it exists, <code>nullptr</code> otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a5fb6c31ae2563c1c33ad3d4192daafe1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int xmlpp::Document::process_xinclude </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>generate_xinclude_nodes</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Perform XInclude substitution on the XML document. </p>
<p>XInclude substitution may both add and delete nodes in the document, as well as change the type of some nodes. All pointers to deleted nodes and nodes whose type is changed become invalid. (The node type represented by an underlying xmlNode struct can change. The type of a C++ wrapper can't change. The old wrapper is deleted, and a new one is created if and when it's required.)</p>
<dl class="since_2_36"><dt><b><a class="el" href="since_2_36.html#_since_2_36000004">Since libxml++ 2.36:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">generate_xinclude_nodes</td><td>Generate <a class="el" href="classxmlpp_1_1XIncludeStart.html" title="XIncludeStart node. ">XIncludeStart</a> and <a class="el" href="classxmlpp_1_1XIncludeEnd.html" title="XIncludeEnd node. ">XIncludeEnd</a> nodes. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of substitutions. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad56a99bd883672ba5eac51a545fada40"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void xmlpp::Document::set_entity_declaration </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacexmlpp.html#a0fa47f0fb103cf9ea460a2fef3f5be49">XmlEntityType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>publicId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>systemId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>content</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add an Entity declaration to the document. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The name of the entity that will be used in an entity reference. </td></tr>
    <tr><td class="paramname">type</td><td>The type of entity. </td></tr>
    <tr><td class="paramname">publicId</td><td>The public ID of the subset. </td></tr>
    <tr><td class="paramname">systemId</td><td>The system ID of the subset. </td></tr>
    <tr><td class="paramname">content</td><td>The value of the Entity. In entity reference substitutions, this is the replacement value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a714dc6c330ae6e00fb285606b8b849a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xmlpp::Document::set_internal_subset </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>external_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>system_id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create the internal subset of this document. </p>
<p>If the document already has an internal subset, a new one is not created. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The DTD name. </td></tr>
    <tr><td class="paramname">external_id</td><td>The external (PUBLIC) ID, or an empty string. </td></tr>
    <tr><td class="paramname">system_id</td><td>The system ID, or an empty string. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="adbbcae29bde29501f3dfff71f2e81da2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xmlpp::Document::write_to_file </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>encoding</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write the document to a file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td></td></tr>
    <tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae54075502d81e9d8448e6820bc16eb34"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xmlpp::Document::write_to_file_formatted </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>encoding</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write the document to a file. </p>
<p>The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td></td></tr>
    <tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a55e593694bdcf67f667f1dbe52cd0794"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xmlpp::Document::write_to_stream </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a> &amp;&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>encoding</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write the document to a <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">output</td><td>A reference to the stream in which the document will be written </td></tr>
    <tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>This method is much less efficient than write_to_string if you want to dump the document to a buffer or the standard output. Writing to a fstream is almost as fast as write_to_file </dd></dl>

</div>
</div>
<a class="anchor" id="add90b2d2d0a837df3f3daec6bccaad2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xmlpp::Document::write_to_stream_formatted </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a> &amp;&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>encoding</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write the document to a <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>. </p>
<p>The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">output</td><td>A reference to the stream in which the document will be written </td></tr>
    <tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>See write_to_stream </dd></dl>

</div>
</div>
<a class="anchor" id="ab63344d932c309062769fd98585e9bc1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::write_to_string </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>encoding</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write the document to the memory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The written document. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac1246acf8c7b51855e9eb12eecefa294"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::write_to_string_formatted </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>encoding</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write the document to the memory. </p>
<p>The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The written document. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 28 2015 14:41:03 for libxml++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>