1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>libxml++: xmlpp::Document Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.4.0 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
9
<a class="el" href="namespacexmlpp.html">xmlpp</a>::<a class="el" href="classxmlpp_1_1Document.html">Document</a></div>
10
<h1>xmlpp::Document Class Reference</h1>Represents a XML document in the dom model.
11
<a href="#_details">More...</a>
13
Inheritance diagram for xmlpp::Document:<p><center><img src="classxmlpp_1_1Document__inherit__graph.jpg" border="0" usemap="#xmlpp_1_1Document__inherit__map" alt="Inheritance graph"></center>
14
<map name="xmlpp_1_1Document__inherit__map">
15
<area href="classxmlpp_1_1NonCopyable.html" shape="rect" coords="7,17,143,36" alt="">
17
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxmlpp_1_1Document-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
19
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
20
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a0">Document</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &version="1.0")</td></tr>
22
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a1">~Document</a> ()</td></tr>
24
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a2">get_encoding</a> () const </td></tr>
26
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Dtd.html">Dtd</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a3">get_internal_subset</a> () const </td></tr>
28
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a4">set_internal_subset</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &name, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &external_id, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &system_id)</td></tr>
30
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a5">get_root_node</a> () const </td></tr>
32
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the root node. <a href="#a5"></a><br></td></tr>
33
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a6">create_root_node</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &name, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &ns_uri=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>(), const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &ns_prefix=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
35
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates the root node. <a href="#a6"></a><br></td></tr>
36
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a7">create_root_node_by_import</a> (const <a class="el" href="classxmlpp_1_1Node.html">Node</a> *node, <a class="el" href="classbool.html">bool</a> recursive=true)</td></tr>
38
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a root node by importing the node from another document, without affecting the source node. <a href="#a7"></a><br></td></tr>
39
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a8">add_comment</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &content)</td></tr>
41
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a new comment node. <a href="#a8"></a><br></td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a9">write_to_file</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &filename, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &encoding=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
44
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the document to a file. <a href="#a9"></a><br></td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a10">write_to_file_formatted</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &filename, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &encoding=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
47
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the document to a file. <a href="#a10"></a><br></td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a11">write_to_string</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &encoding=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
50
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the document to the memory. <a href="#a11"></a><br></td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a12">write_to_string_formatted</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &encoding=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
53
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the document to the memory. <a href="#a12"></a><br></td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a13">write_to_stream</a> (<a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1basic__ostream.html">std::ostream</a> &output, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &encoding=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
56
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the document to a <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#ga3">std::ostream</a>. <a href="#a13"></a><br></td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a14">write_to_stream_formatted</a> (<a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1basic__ostream.html">std::ostream</a> &output, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &encoding=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
59
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the document to a <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#ga3">std::ostream</a>. <a href="#a14"></a><br></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a15">set_entity_declaration</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &name, <a class="el" href="namespacexmlpp.html#a7">XmlEntityType</a> type, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &publicId, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &systemId, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &content)</td></tr>
62
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add an Entity declaration to the document. <a href="#a15"></a><br></td></tr>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">_xmlDoc * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a16">cobj</a> ()</td></tr>
65
<tr><td class="mdescLeft"> </td><td class="mdescRight">Access the underlying libxml implementation. <a href="#a16"></a><br></td></tr>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top">const _xmlDoc * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a17">cobj</a> () const </td></tr>
68
<tr><td class="mdescLeft"> </td><td class="mdescRight">Access the underlying libxml implementation. <a href="#a17"></a><br></td></tr>
69
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
70
<tr><td class="memItemLeft" nowrap align="right" valign="top">_xmlEntity * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#b0">get_entity</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &name)</td></tr>
72
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve an Entity. <a href="#b0"></a><br></td></tr>
73
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
74
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#n0">DomParser</a></td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#n1">SaxParser</a></td></tr>
78
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>Init</b></td></tr>
82
<hr><a name="_details"></a><h2>Detailed Description</h2>
83
Represents a XML document in the dom model.
85
<hr><h2>Constructor & Destructor Documentation</h2>
86
<a class="anchor" name="a0" doxytag="xmlpp::Document::Document"></a><p>
87
<table class="mdTable" cellpadding="2" cellspacing="0">
90
<table cellpadding="0" cellspacing="0" border="0">
92
<td class="md" nowrap valign="top">xmlpp::Document::Document </td>
93
<td class="md" valign="top">( </td>
94
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
95
<td class="mdname1" valign="top" nowrap> <em>version</em> = <code>"1.0"</code> </td>
96
<td class="md" valign="top"> ) </td>
97
<td class="md" nowrap><code> [explicit]</code></td>
103
<table cellspacing="5" cellpadding="0" border="0">
114
<a class="anchor" name="a1" doxytag="xmlpp::Document::~Document"></a><p>
115
<table class="mdTable" cellpadding="2" cellspacing="0">
118
<table cellpadding="0" cellspacing="0" border="0">
120
<td class="md" nowrap valign="top">virtual xmlpp::Document::~<a class="el" href="classxmlpp_1_1Document.html">Document</a> </td>
121
<td class="md" valign="top">( </td>
122
<td class="mdname1" valign="top" nowrap> </td>
123
<td class="md" valign="top"> ) </td>
124
<td class="md" nowrap><code> [virtual]</code></td>
130
<table cellspacing="5" cellpadding="0" border="0">
141
<hr><h2>Member Function Documentation</h2>
142
<a class="anchor" name="a8" doxytag="xmlpp::Document::add_comment"></a><p>
143
<table class="mdTable" cellpadding="2" cellspacing="0">
146
<table cellpadding="0" cellspacing="0" border="0">
148
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* xmlpp::Document::add_comment </td>
149
<td class="md" valign="top">( </td>
150
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
151
<td class="mdname1" valign="top" nowrap> <em>content</em> </td>
152
<td class="md" valign="top"> ) </td>
153
<td class="md" nowrap></td>
159
<table cellspacing="5" cellpadding="0" border="0">
167
Append a new comment node.
169
<dl compact><dt><b>Parameters:</b></dt><dd>
170
<table border="0" cellspacing="2" cellpadding="0">
171
<tr><td valign="top"></td><td valign="top"><em>content</em> </td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a3">ContentNode::set_content()</a>. </td></tr>
174
<dl compact><dt><b>Returns:</b></dt><dd>The new comment node. </dd></dl>
178
<a class="anchor" name="a17" doxytag="xmlpp::Document::cobj"></a><p>
179
<table class="mdTable" cellpadding="2" cellspacing="0">
182
<table cellpadding="0" cellspacing="0" border="0">
184
<td class="md" nowrap valign="top">const _xmlDoc* xmlpp::Document::cobj </td>
185
<td class="md" valign="top">( </td>
186
<td class="mdname1" valign="top" nowrap> </td>
187
<td class="md" valign="top"> ) </td>
188
<td class="md" nowrap> const</td>
194
<table cellspacing="5" cellpadding="0" border="0">
202
Access the underlying libxml implementation.
207
<a class="anchor" name="a16" doxytag="xmlpp::Document::cobj"></a><p>
208
<table class="mdTable" cellpadding="2" cellspacing="0">
211
<table cellpadding="0" cellspacing="0" border="0">
213
<td class="md" nowrap valign="top">_xmlDoc* xmlpp::Document::cobj </td>
214
<td class="md" valign="top">( </td>
215
<td class="mdname1" valign="top" nowrap> </td>
216
<td class="md" valign="top"> ) </td>
217
<td class="md" nowrap></td>
223
<table cellspacing="5" cellpadding="0" border="0">
231
Access the underlying libxml implementation.
236
<a class="anchor" name="a6" doxytag="xmlpp::Document::create_root_node"></a><p>
237
<table class="mdTable" cellpadding="2" cellspacing="0">
240
<table cellpadding="0" cellspacing="0" border="0">
242
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::create_root_node </td>
243
<td class="md" valign="top">( </td>
244
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
245
<td class="mdname" nowrap> <em>name</em>, </td>
248
<td class="md" nowrap align="right"></td>
250
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
251
<td class="mdname" nowrap> <em>ns_uri</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code>, </td>
254
<td class="md" nowrap align="right"></td>
256
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
257
<td class="mdname" nowrap> <em>ns_prefix</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td>
261
<td class="md">) </td>
262
<td class="md" colspan="2"></td>
268
<table cellspacing="5" cellpadding="0" border="0">
276
Creates the root node.
278
<dl compact><dt><b>Parameters:</b></dt><dd>
279
<table border="0" cellspacing="2" cellpadding="0">
280
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The node's name. </td></tr>
281
<tr><td valign="top"></td><td valign="top"><em>ns_uri</em> </td><td>The namespace URI. A namspace declaration will be added to this node, because it could not have been declared before. </td></tr>
282
<tr><td valign="top"></td><td valign="top"><em>ns_prefix</em> </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>
285
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the new root node </dd></dl>
289
<a class="anchor" name="a7" doxytag="xmlpp::Document::create_root_node_by_import"></a><p>
290
<table class="mdTable" cellpadding="2" cellspacing="0">
293
<table cellpadding="0" cellspacing="0" border="0">
295
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::create_root_node_by_import </td>
296
<td class="md" valign="top">( </td>
297
<td class="md" nowrap valign="top">const <a class="el" href="classxmlpp_1_1Node.html">Node</a> * </td>
298
<td class="mdname" nowrap> <em>node</em>, </td>
301
<td class="md" nowrap align="right"></td>
303
<td class="md" nowrap><a class="el" href="classbool.html">bool</a> </td>
304
<td class="mdname" nowrap> <em>recursive</em> = <code>true</code></td>
308
<td class="md">) </td>
309
<td class="md" colspan="2"></td>
315
<table cellspacing="5" cellpadding="0" border="0">
323
Creates a root node by importing the node from another document, without affecting the source node.
325
<dl compact><dt><b>Parameters:</b></dt><dd>
326
<table border="0" cellspacing="2" cellpadding="0">
327
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>The node to copy and insert as the root node of the document </td></tr>
328
<tr><td valign="top"></td><td valign="top"><em>recursive</em> </td><td>Whether to import the child nodes also. Defaults to true. </td></tr>
331
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the new root node </dd></dl>
335
<a class="anchor" name="a2" doxytag="xmlpp::Document::get_encoding"></a><p>
336
<table class="mdTable" cellpadding="2" cellspacing="0">
339
<table cellpadding="0" cellspacing="0" border="0">
341
<td class="md" nowrap valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::get_encoding </td>
342
<td class="md" valign="top">( </td>
343
<td class="mdname1" valign="top" nowrap> </td>
344
<td class="md" valign="top"> ) </td>
345
<td class="md" nowrap> const</td>
351
<table cellspacing="5" cellpadding="0" border="0">
359
<dl compact><dt><b>Returns:</b></dt><dd>The encoding used in the source from which the document has been loaded. </dd></dl>
363
<a class="anchor" name="b0" doxytag="xmlpp::Document::get_entity"></a><p>
364
<table class="mdTable" cellpadding="2" cellspacing="0">
367
<table cellpadding="0" cellspacing="0" border="0">
369
<td class="md" nowrap valign="top">_xmlEntity* xmlpp::Document::get_entity </td>
370
<td class="md" valign="top">( </td>
371
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
372
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
373
<td class="md" valign="top"> ) </td>
374
<td class="md" nowrap><code> [protected]</code></td>
380
<table cellspacing="5" cellpadding="0" border="0">
390
The entity can be from an external subset or internally declared. <dl compact><dt><b>Parameters:</b></dt><dd>
391
<table border="0" cellspacing="2" cellpadding="0">
392
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Then name of the entity to get. </td></tr>
395
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the libxml2 entity structure. </dd></dl>
399
<a class="anchor" name="a3" doxytag="xmlpp::Document::get_internal_subset"></a><p>
400
<table class="mdTable" cellpadding="2" cellspacing="0">
403
<table cellpadding="0" cellspacing="0" border="0">
405
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1Dtd.html">Dtd</a>* xmlpp::Document::get_internal_subset </td>
406
<td class="md" valign="top">( </td>
407
<td class="mdname1" valign="top" nowrap> </td>
408
<td class="md" valign="top"> ) </td>
409
<td class="md" nowrap> const</td>
415
<table cellspacing="5" cellpadding="0" border="0">
426
<a class="anchor" name="a5" doxytag="xmlpp::Document::get_root_node"></a><p>
427
<table class="mdTable" cellpadding="2" cellspacing="0">
430
<table cellpadding="0" cellspacing="0" border="0">
432
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::get_root_node </td>
433
<td class="md" valign="top">( </td>
434
<td class="mdname1" valign="top" nowrap> </td>
435
<td class="md" valign="top"> ) </td>
436
<td class="md" nowrap> const</td>
442
<table cellspacing="5" cellpadding="0" border="0">
450
Return the root node.
452
This function does _not_ create a default root node if it doesn't exist. <dl compact><dt><b>Returns:</b></dt><dd>A pointer to the root node if it exists, 0 otherwise. </dd></dl>
456
<a class="anchor" name="a15" doxytag="xmlpp::Document::set_entity_declaration"></a><p>
457
<table class="mdTable" cellpadding="2" cellspacing="0">
460
<table cellpadding="0" cellspacing="0" border="0">
462
<td class="md" nowrap valign="top">virtual void xmlpp::Document::set_entity_declaration </td>
463
<td class="md" valign="top">( </td>
464
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
465
<td class="mdname" nowrap> <em>name</em>, </td>
468
<td class="md" nowrap align="right"></td>
470
<td class="md" nowrap><a class="el" href="namespacexmlpp.html#a7">XmlEntityType</a> </td>
471
<td class="mdname" nowrap> <em>type</em>, </td>
474
<td class="md" nowrap align="right"></td>
476
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
477
<td class="mdname" nowrap> <em>publicId</em>, </td>
480
<td class="md" nowrap align="right"></td>
482
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
483
<td class="mdname" nowrap> <em>systemId</em>, </td>
486
<td class="md" nowrap align="right"></td>
488
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
489
<td class="mdname" nowrap> <em>content</em></td>
493
<td class="md">) </td>
494
<td class="md" colspan="2"><code> [virtual]</code></td>
500
<table cellspacing="5" cellpadding="0" border="0">
508
Add an Entity declaration to the document.
510
<dl compact><dt><b>Parameters:</b></dt><dd>
511
<table border="0" cellspacing="2" cellpadding="0">
512
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the entity that will be used in an entity reference. </td></tr>
513
<tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>The type of entity. </td></tr>
514
<tr><td valign="top"></td><td valign="top"><em>publicId</em> </td><td>The public ID of the subset. </td></tr>
515
<tr><td valign="top"></td><td valign="top"><em>systemId</em> </td><td>The system ID of the subset. </td></tr>
516
<tr><td valign="top"></td><td valign="top"><em>content</em> </td><td>The value of the Entity. In entity reference substitutions, this is the replacement value. </td></tr>
522
<a class="anchor" name="a4" doxytag="xmlpp::Document::set_internal_subset"></a><p>
523
<table class="mdTable" cellpadding="2" cellspacing="0">
526
<table cellpadding="0" cellspacing="0" border="0">
528
<td class="md" nowrap valign="top">void xmlpp::Document::set_internal_subset </td>
529
<td class="md" valign="top">( </td>
530
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
531
<td class="mdname" nowrap> <em>name</em>, </td>
534
<td class="md" nowrap align="right"></td>
536
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
537
<td class="mdname" nowrap> <em>external_id</em>, </td>
540
<td class="md" nowrap align="right"></td>
542
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
543
<td class="mdname" nowrap> <em>system_id</em></td>
547
<td class="md">) </td>
548
<td class="md" colspan="2"></td>
554
<table cellspacing="5" cellpadding="0" border="0">
565
<a class="anchor" name="a9" doxytag="xmlpp::Document::write_to_file"></a><p>
566
<table class="mdTable" cellpadding="2" cellspacing="0">
569
<table cellpadding="0" cellspacing="0" border="0">
571
<td class="md" nowrap valign="top">void xmlpp::Document::write_to_file </td>
572
<td class="md" valign="top">( </td>
573
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
574
<td class="mdname" nowrap> <em>filename</em>, </td>
577
<td class="md" nowrap align="right"></td>
579
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
580
<td class="mdname" nowrap> <em>encoding</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td>
584
<td class="md">) </td>
585
<td class="md" colspan="2"></td>
591
<table cellspacing="5" cellpadding="0" border="0">
599
Write the document to a file.
601
<dl compact><dt><b>Parameters:</b></dt><dd>
602
<table border="0" cellspacing="2" cellpadding="0">
603
<tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td></td></tr>
604
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>If not provided, UTF-8 is used </td></tr>
610
<a class="anchor" name="a10" doxytag="xmlpp::Document::write_to_file_formatted"></a><p>
611
<table class="mdTable" cellpadding="2" cellspacing="0">
614
<table cellpadding="0" cellspacing="0" border="0">
616
<td class="md" nowrap valign="top">void xmlpp::Document::write_to_file_formatted </td>
617
<td class="md" valign="top">( </td>
618
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
619
<td class="mdname" nowrap> <em>filename</em>, </td>
622
<td class="md" nowrap align="right"></td>
624
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
625
<td class="mdname" nowrap> <em>encoding</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td>
629
<td class="md">) </td>
630
<td class="md" colspan="2"></td>
636
<table cellspacing="5" cellpadding="0" border="0">
644
Write the document to a file.
646
The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! <dl compact><dt><b>Parameters:</b></dt><dd>
647
<table border="0" cellspacing="2" cellpadding="0">
648
<tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td></td></tr>
649
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>If not provided, UTF-8 is used </td></tr>
655
<a class="anchor" name="a13" doxytag="xmlpp::Document::write_to_stream"></a><p>
656
<table class="mdTable" cellpadding="2" cellspacing="0">
659
<table cellpadding="0" cellspacing="0" border="0">
661
<td class="md" nowrap valign="top">void xmlpp::Document::write_to_stream </td>
662
<td class="md" valign="top">( </td>
663
<td class="md" nowrap valign="top"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1basic__ostream.html">std::ostream</a> & </td>
664
<td class="mdname" nowrap> <em>output</em>, </td>
667
<td class="md" nowrap align="right"></td>
669
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
670
<td class="mdname" nowrap> <em>encoding</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td>
674
<td class="md">) </td>
675
<td class="md" colspan="2"></td>
681
<table cellspacing="5" cellpadding="0" border="0">
689
Write the document to a <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#ga3">std::ostream</a>.
691
<dl compact><dt><b>Parameters:</b></dt><dd>
692
<table border="0" cellspacing="2" cellpadding="0">
693
<tr><td valign="top"></td><td valign="top"><em>output</em> </td><td>A reference to the stream in which the document will be written </td></tr>
694
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>If not provided, UTF-8 is used </td></tr>
697
<dl compact><dt><b>Warning:</b></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>
701
<a class="anchor" name="a14" doxytag="xmlpp::Document::write_to_stream_formatted"></a><p>
702
<table class="mdTable" cellpadding="2" cellspacing="0">
705
<table cellpadding="0" cellspacing="0" border="0">
707
<td class="md" nowrap valign="top">void xmlpp::Document::write_to_stream_formatted </td>
708
<td class="md" valign="top">( </td>
709
<td class="md" nowrap valign="top"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1basic__ostream.html">std::ostream</a> & </td>
710
<td class="mdname" nowrap> <em>output</em>, </td>
713
<td class="md" nowrap align="right"></td>
715
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
716
<td class="mdname" nowrap> <em>encoding</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td>
720
<td class="md">) </td>
721
<td class="md" colspan="2"></td>
727
<table cellspacing="5" cellpadding="0" border="0">
735
Write the document to a <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#ga3">std::ostream</a>.
737
The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! <dl compact><dt><b>Parameters:</b></dt><dd>
738
<table border="0" cellspacing="2" cellpadding="0">
739
<tr><td valign="top"></td><td valign="top"><em>output</em> </td><td>A reference to the stream in which the document will be written </td></tr>
740
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>If not provided, UTF-8 is used </td></tr>
743
<dl compact><dt><b>Warning:</b></dt><dd>See write_to_stream </dd></dl>
747
<a class="anchor" name="a11" doxytag="xmlpp::Document::write_to_string"></a><p>
748
<table class="mdTable" cellpadding="2" cellspacing="0">
751
<table cellpadding="0" cellspacing="0" border="0">
753
<td class="md" nowrap valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::write_to_string </td>
754
<td class="md" valign="top">( </td>
755
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
756
<td class="mdname1" valign="top" nowrap> <em>encoding</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td>
757
<td class="md" valign="top"> ) </td>
758
<td class="md" nowrap></td>
764
<table cellspacing="5" cellpadding="0" border="0">
772
Write the document to the memory.
774
<dl compact><dt><b>Parameters:</b></dt><dd>
775
<table border="0" cellspacing="2" cellpadding="0">
776
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>If not provided, UTF-8 is used </td></tr>
782
<a class="anchor" name="a12" doxytag="xmlpp::Document::write_to_string_formatted"></a><p>
783
<table class="mdTable" cellpadding="2" cellspacing="0">
786
<table cellpadding="0" cellspacing="0" border="0">
788
<td class="md" nowrap valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::write_to_string_formatted </td>
789
<td class="md" valign="top">( </td>
790
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
791
<td class="mdname1" valign="top" nowrap> <em>encoding</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td>
792
<td class="md" valign="top"> ) </td>
793
<td class="md" nowrap></td>
799
<table cellspacing="5" cellpadding="0" border="0">
807
Write the document to the memory.
809
The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! <dl compact><dt><b>Parameters:</b></dt><dd>
810
<table border="0" cellspacing="2" cellpadding="0">
811
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>If not provided, UTF-8 is used </td></tr>
814
<dl compact><dt><b>Returns:</b></dt><dd>The written document. </dd></dl>
818
<hr><h2>Friends And Related Function Documentation</h2>
819
<a class="anchor" name="n0" doxytag="xmlpp::Document::DomParser"></a><p>
820
<table class="mdTable" cellpadding="2" cellspacing="0">
823
<table cellpadding="0" cellspacing="0" border="0">
825
<td class="md" nowrap valign="top">friend class <a class="el" href="classxmlpp_1_1DomParser.html">DomParser</a><code> [friend]</code> </td>
831
<table cellspacing="5" cellpadding="0" border="0">
842
<a class="anchor" name="n1" doxytag="xmlpp::Document::SaxParser"></a><p>
843
<table class="mdTable" cellpadding="2" cellspacing="0">
846
<table cellpadding="0" cellspacing="0" border="0">
848
<td class="md" nowrap valign="top">friend class <a class="el" href="classxmlpp_1_1SaxParser.html">SaxParser</a><code> [friend]</code> </td>
854
<table cellspacing="5" cellpadding="0" border="0">
865
<hr>The documentation for this class was generated from the following file:<ul>
866
<li><a class="el" href="document_8h.html">document.h</a></ul>
867
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 8 12:05:37 2005 for libxml++ by
868
<a href="http://www.doxygen.org/index.html">
869
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.0 </small></address>