~ubuntu-branches/ubuntu/precise/libxml++2.6/precise

« back to all changes in this revision

Viewing changes to docs/reference/2.10/html/classxmlpp_1_1Document.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-03-13 15:46:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050313154633-iubyqdtu6y3p8915
Tags: 2.10.0-0ubuntu2
added doxygen to the build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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">
 
5
</head><body>
 
6
<!-- Generated by Doxygen 1.4.0 -->
 
7
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
 
8
<div class="nav">
 
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>
 
12
<p>
 
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="">
 
16
</map>
 
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">
 
18
<tr><td></td></tr>
 
19
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
 
20
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</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> &amp;version="1.0")</td></tr>
 
21
 
 
22
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a1">~Document</a> ()</td></tr>
 
23
 
 
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>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a2">get_encoding</a> () const </td></tr>
 
25
 
 
26
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Dtd.html">Dtd</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a3">get_internal_subset</a> () const </td></tr>
 
27
 
 
28
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</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> &amp;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> &amp;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> &amp;system_id)</td></tr>
 
29
 
 
30
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a5">get_root_node</a> () const </td></tr>
 
31
 
 
32
<tr><td class="mdescLeft">&nbsp;</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> *&nbsp;</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> &amp;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> &amp;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> &amp;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>
 
34
 
 
35
<tr><td class="mdescLeft">&nbsp;</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> *&nbsp;</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>
 
37
 
 
38
<tr><td class="mdescLeft">&nbsp;</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> *&nbsp;</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> &amp;content)</td></tr>
 
40
 
 
41
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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> &amp;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> &amp;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>
 
43
 
 
44
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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> &amp;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> &amp;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>
 
46
 
 
47
<tr><td class="mdescLeft">&nbsp;</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>&nbsp;</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> &amp;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>
 
49
 
 
50
<tr><td class="mdescLeft">&nbsp;</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>&nbsp;</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> &amp;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>
 
52
 
 
53
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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> &amp;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> &amp;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>
 
55
 
 
56
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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> &amp;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> &amp;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>
 
58
 
 
59
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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> &amp;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> &amp;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> &amp;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> &amp;content)</td></tr>
 
61
 
 
62
<tr><td class="mdescLeft">&nbsp;</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 *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a16">cobj</a> ()</td></tr>
 
64
 
 
65
<tr><td class="mdescLeft">&nbsp;</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 *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a17">cobj</a> () const </td></tr>
 
67
 
 
68
<tr><td class="mdescLeft">&nbsp;</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 *&nbsp;</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> &amp;name)</td></tr>
 
71
 
 
72
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#n0">DomParser</a></td></tr>
 
75
 
 
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#n1">SaxParser</a></td></tr>
 
77
 
 
78
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
 
79
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><b>Init</b></td></tr>
 
80
 
 
81
</table>
 
82
<hr><a name="_details"></a><h2>Detailed Description</h2>
 
83
Represents a XML document in the dom model. 
 
84
<p>
 
85
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
86
<a class="anchor" name="a0" doxytag="xmlpp::Document::Document"></a><p>
 
87
<table class="mdTable" cellpadding="2" cellspacing="0">
 
88
  <tr>
 
89
    <td class="mdRow">
 
90
      <table cellpadding="0" cellspacing="0" border="0">
 
91
        <tr>
 
92
          <td class="md" nowrap valign="top">xmlpp::Document::Document           </td>
 
93
          <td class="md" valign="top">(&nbsp;</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> &amp;&nbsp;</td>
 
95
          <td class="mdname1" valign="top" nowrap> <em>version</em> = <code>"1.0"</code>          </td>
 
96
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
97
          <td class="md" nowrap><code> [explicit]</code></td>
 
98
        </tr>
 
99
      </table>
 
100
    </td>
 
101
  </tr>
 
102
</table>
 
103
<table cellspacing="5" cellpadding="0" border="0">
 
104
  <tr>
 
105
    <td>
 
106
      &nbsp;
 
107
    </td>
 
108
    <td>
 
109
 
 
110
<p>
 
111
    </td>
 
112
  </tr>
 
113
</table>
 
114
<a class="anchor" name="a1" doxytag="xmlpp::Document::~Document"></a><p>
 
115
<table class="mdTable" cellpadding="2" cellspacing="0">
 
116
  <tr>
 
117
    <td class="mdRow">
 
118
      <table cellpadding="0" cellspacing="0" border="0">
 
119
        <tr>
 
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">(&nbsp;</td>
 
122
          <td class="mdname1" valign="top" nowrap>          </td>
 
123
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
124
          <td class="md" nowrap><code> [virtual]</code></td>
 
125
        </tr>
 
126
      </table>
 
127
    </td>
 
128
  </tr>
 
129
</table>
 
130
<table cellspacing="5" cellpadding="0" border="0">
 
131
  <tr>
 
132
    <td>
 
133
      &nbsp;
 
134
    </td>
 
135
    <td>
 
136
 
 
137
<p>
 
138
    </td>
 
139
  </tr>
 
140
</table>
 
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">
 
144
  <tr>
 
145
    <td class="mdRow">
 
146
      <table cellpadding="0" cellspacing="0" border="0">
 
147
        <tr>
 
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">(&nbsp;</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> &amp;&nbsp;</td>
 
151
          <td class="mdname1" valign="top" nowrap> <em>content</em>          </td>
 
152
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
153
          <td class="md" nowrap></td>
 
154
        </tr>
 
155
      </table>
 
156
    </td>
 
157
  </tr>
 
158
</table>
 
159
<table cellspacing="5" cellpadding="0" border="0">
 
160
  <tr>
 
161
    <td>
 
162
      &nbsp;
 
163
    </td>
 
164
    <td>
 
165
 
 
166
<p>
 
167
Append a new comment node. 
 
168
<p>
 
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>&nbsp;</td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a3">ContentNode::set_content()</a>. </td></tr>
 
172
  </table>
 
173
</dl>
 
174
<dl compact><dt><b>Returns:</b></dt><dd>The new comment node. </dd></dl>
 
175
    </td>
 
176
  </tr>
 
177
</table>
 
178
<a class="anchor" name="a17" doxytag="xmlpp::Document::cobj"></a><p>
 
179
<table class="mdTable" cellpadding="2" cellspacing="0">
 
180
  <tr>
 
181
    <td class="mdRow">
 
182
      <table cellpadding="0" cellspacing="0" border="0">
 
183
        <tr>
 
184
          <td class="md" nowrap valign="top">const _xmlDoc* xmlpp::Document::cobj           </td>
 
185
          <td class="md" valign="top">(&nbsp;</td>
 
186
          <td class="mdname1" valign="top" nowrap>          </td>
 
187
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
188
          <td class="md" nowrap> const</td>
 
189
        </tr>
 
190
      </table>
 
191
    </td>
 
192
  </tr>
 
193
</table>
 
194
<table cellspacing="5" cellpadding="0" border="0">
 
195
  <tr>
 
196
    <td>
 
197
      &nbsp;
 
198
    </td>
 
199
    <td>
 
200
 
 
201
<p>
 
202
Access the underlying libxml implementation. 
 
203
<p>
 
204
    </td>
 
205
  </tr>
 
206
</table>
 
207
<a class="anchor" name="a16" doxytag="xmlpp::Document::cobj"></a><p>
 
208
<table class="mdTable" cellpadding="2" cellspacing="0">
 
209
  <tr>
 
210
    <td class="mdRow">
 
211
      <table cellpadding="0" cellspacing="0" border="0">
 
212
        <tr>
 
213
          <td class="md" nowrap valign="top">_xmlDoc* xmlpp::Document::cobj           </td>
 
214
          <td class="md" valign="top">(&nbsp;</td>
 
215
          <td class="mdname1" valign="top" nowrap>          </td>
 
216
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
217
          <td class="md" nowrap></td>
 
218
        </tr>
 
219
      </table>
 
220
    </td>
 
221
  </tr>
 
222
</table>
 
223
<table cellspacing="5" cellpadding="0" border="0">
 
224
  <tr>
 
225
    <td>
 
226
      &nbsp;
 
227
    </td>
 
228
    <td>
 
229
 
 
230
<p>
 
231
Access the underlying libxml implementation. 
 
232
<p>
 
233
    </td>
 
234
  </tr>
 
235
</table>
 
236
<a class="anchor" name="a6" doxytag="xmlpp::Document::create_root_node"></a><p>
 
237
<table class="mdTable" cellpadding="2" cellspacing="0">
 
238
  <tr>
 
239
    <td class="mdRow">
 
240
      <table cellpadding="0" cellspacing="0" border="0">
 
241
        <tr>
 
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">(&nbsp;</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> &amp;&nbsp;</td>
 
245
          <td class="mdname" nowrap> <em>name</em>, </td>
 
246
        </tr>
 
247
        <tr>
 
248
          <td class="md" nowrap align="right"></td>
 
249
          <td class="md"></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> &amp;&nbsp;</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>
 
252
        </tr>
 
253
        <tr>
 
254
          <td class="md" nowrap align="right"></td>
 
255
          <td class="md"></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> &amp;&nbsp;</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>
 
258
        </tr>
 
259
        <tr>
 
260
          <td class="md"></td>
 
261
          <td class="md">)&nbsp;</td>
 
262
          <td class="md" colspan="2"></td>
 
263
        </tr>
 
264
      </table>
 
265
    </td>
 
266
  </tr>
 
267
</table>
 
268
<table cellspacing="5" cellpadding="0" border="0">
 
269
  <tr>
 
270
    <td>
 
271
      &nbsp;
 
272
    </td>
 
273
    <td>
 
274
 
 
275
<p>
 
276
Creates the root node. 
 
277
<p>
 
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>&nbsp;</td><td>The node's name. </td></tr>
 
281
    <tr><td valign="top"></td><td valign="top"><em>ns_uri</em>&nbsp;</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>&nbsp;</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>
 
283
  </table>
 
284
</dl>
 
285
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the new root node </dd></dl>
 
286
    </td>
 
287
  </tr>
 
288
</table>
 
289
<a class="anchor" name="a7" doxytag="xmlpp::Document::create_root_node_by_import"></a><p>
 
290
<table class="mdTable" cellpadding="2" cellspacing="0">
 
291
  <tr>
 
292
    <td class="mdRow">
 
293
      <table cellpadding="0" cellspacing="0" border="0">
 
294
        <tr>
 
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">(&nbsp;</td>
 
297
          <td class="md" nowrap valign="top">const <a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td>
 
298
          <td class="mdname" nowrap> <em>node</em>, </td>
 
299
        </tr>
 
300
        <tr>
 
301
          <td class="md" nowrap align="right"></td>
 
302
          <td class="md"></td>
 
303
          <td class="md" nowrap><a class="el" href="classbool.html">bool</a>&nbsp;</td>
 
304
          <td class="mdname" nowrap> <em>recursive</em> = <code>true</code></td>
 
305
        </tr>
 
306
        <tr>
 
307
          <td class="md"></td>
 
308
          <td class="md">)&nbsp;</td>
 
309
          <td class="md" colspan="2"></td>
 
310
        </tr>
 
311
      </table>
 
312
    </td>
 
313
  </tr>
 
314
</table>
 
315
<table cellspacing="5" cellpadding="0" border="0">
 
316
  <tr>
 
317
    <td>
 
318
      &nbsp;
 
319
    </td>
 
320
    <td>
 
321
 
 
322
<p>
 
323
Creates a root node by importing the node from another document, without affecting the source node. 
 
324
<p>
 
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>&nbsp;</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>&nbsp;</td><td>Whether to import the child nodes also. Defaults to true. </td></tr>
 
329
  </table>
 
330
</dl>
 
331
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the new root node </dd></dl>
 
332
    </td>
 
333
  </tr>
 
334
</table>
 
335
<a class="anchor" name="a2" doxytag="xmlpp::Document::get_encoding"></a><p>
 
336
<table class="mdTable" cellpadding="2" cellspacing="0">
 
337
  <tr>
 
338
    <td class="mdRow">
 
339
      <table cellpadding="0" cellspacing="0" border="0">
 
340
        <tr>
 
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">(&nbsp;</td>
 
343
          <td class="mdname1" valign="top" nowrap>          </td>
 
344
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
345
          <td class="md" nowrap> const</td>
 
346
        </tr>
 
347
      </table>
 
348
    </td>
 
349
  </tr>
 
350
</table>
 
351
<table cellspacing="5" cellpadding="0" border="0">
 
352
  <tr>
 
353
    <td>
 
354
      &nbsp;
 
355
    </td>
 
356
    <td>
 
357
 
 
358
<p>
 
359
<dl compact><dt><b>Returns:</b></dt><dd>The encoding used in the source from which the document has been loaded. </dd></dl>
 
360
    </td>
 
361
  </tr>
 
362
</table>
 
363
<a class="anchor" name="b0" doxytag="xmlpp::Document::get_entity"></a><p>
 
364
<table class="mdTable" cellpadding="2" cellspacing="0">
 
365
  <tr>
 
366
    <td class="mdRow">
 
367
      <table cellpadding="0" cellspacing="0" border="0">
 
368
        <tr>
 
369
          <td class="md" nowrap valign="top">_xmlEntity* xmlpp::Document::get_entity           </td>
 
370
          <td class="md" valign="top">(&nbsp;</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> &amp;&nbsp;</td>
 
372
          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
 
373
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
374
          <td class="md" nowrap><code> [protected]</code></td>
 
375
        </tr>
 
376
      </table>
 
377
    </td>
 
378
  </tr>
 
379
</table>
 
380
<table cellspacing="5" cellpadding="0" border="0">
 
381
  <tr>
 
382
    <td>
 
383
      &nbsp;
 
384
    </td>
 
385
    <td>
 
386
 
 
387
<p>
 
388
Retrieve an Entity. 
 
389
<p>
 
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>&nbsp;</td><td>Then name of the entity to get. </td></tr>
 
393
  </table>
 
394
</dl>
 
395
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the libxml2 entity structure. </dd></dl>
 
396
    </td>
 
397
  </tr>
 
398
</table>
 
399
<a class="anchor" name="a3" doxytag="xmlpp::Document::get_internal_subset"></a><p>
 
400
<table class="mdTable" cellpadding="2" cellspacing="0">
 
401
  <tr>
 
402
    <td class="mdRow">
 
403
      <table cellpadding="0" cellspacing="0" border="0">
 
404
        <tr>
 
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">(&nbsp;</td>
 
407
          <td class="mdname1" valign="top" nowrap>          </td>
 
408
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
409
          <td class="md" nowrap> const</td>
 
410
        </tr>
 
411
      </table>
 
412
    </td>
 
413
  </tr>
 
414
</table>
 
415
<table cellspacing="5" cellpadding="0" border="0">
 
416
  <tr>
 
417
    <td>
 
418
      &nbsp;
 
419
    </td>
 
420
    <td>
 
421
 
 
422
<p>
 
423
    </td>
 
424
  </tr>
 
425
</table>
 
426
<a class="anchor" name="a5" doxytag="xmlpp::Document::get_root_node"></a><p>
 
427
<table class="mdTable" cellpadding="2" cellspacing="0">
 
428
  <tr>
 
429
    <td class="mdRow">
 
430
      <table cellpadding="0" cellspacing="0" border="0">
 
431
        <tr>
 
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">(&nbsp;</td>
 
434
          <td class="mdname1" valign="top" nowrap>          </td>
 
435
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
436
          <td class="md" nowrap> const</td>
 
437
        </tr>
 
438
      </table>
 
439
    </td>
 
440
  </tr>
 
441
</table>
 
442
<table cellspacing="5" cellpadding="0" border="0">
 
443
  <tr>
 
444
    <td>
 
445
      &nbsp;
 
446
    </td>
 
447
    <td>
 
448
 
 
449
<p>
 
450
Return the root node. 
 
451
<p>
 
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>
 
453
    </td>
 
454
  </tr>
 
455
</table>
 
456
<a class="anchor" name="a15" doxytag="xmlpp::Document::set_entity_declaration"></a><p>
 
457
<table class="mdTable" cellpadding="2" cellspacing="0">
 
458
  <tr>
 
459
    <td class="mdRow">
 
460
      <table cellpadding="0" cellspacing="0" border="0">
 
461
        <tr>
 
462
          <td class="md" nowrap valign="top">virtual void xmlpp::Document::set_entity_declaration           </td>
 
463
          <td class="md" valign="top">(&nbsp;</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> &amp;&nbsp;</td>
 
465
          <td class="mdname" nowrap> <em>name</em>, </td>
 
466
        </tr>
 
467
        <tr>
 
468
          <td class="md" nowrap align="right"></td>
 
469
          <td class="md"></td>
 
470
          <td class="md" nowrap><a class="el" href="namespacexmlpp.html#a7">XmlEntityType</a>&nbsp;</td>
 
471
          <td class="mdname" nowrap> <em>type</em>, </td>
 
472
        </tr>
 
473
        <tr>
 
474
          <td class="md" nowrap align="right"></td>
 
475
          <td class="md"></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> &amp;&nbsp;</td>
 
477
          <td class="mdname" nowrap> <em>publicId</em>, </td>
 
478
        </tr>
 
479
        <tr>
 
480
          <td class="md" nowrap align="right"></td>
 
481
          <td class="md"></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> &amp;&nbsp;</td>
 
483
          <td class="mdname" nowrap> <em>systemId</em>, </td>
 
484
        </tr>
 
485
        <tr>
 
486
          <td class="md" nowrap align="right"></td>
 
487
          <td class="md"></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> &amp;&nbsp;</td>
 
489
          <td class="mdname" nowrap> <em>content</em></td>
 
490
        </tr>
 
491
        <tr>
 
492
          <td class="md"></td>
 
493
          <td class="md">)&nbsp;</td>
 
494
          <td class="md" colspan="2"><code> [virtual]</code></td>
 
495
        </tr>
 
496
      </table>
 
497
    </td>
 
498
  </tr>
 
499
</table>
 
500
<table cellspacing="5" cellpadding="0" border="0">
 
501
  <tr>
 
502
    <td>
 
503
      &nbsp;
 
504
    </td>
 
505
    <td>
 
506
 
 
507
<p>
 
508
Add an Entity declaration to the document. 
 
509
<p>
 
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>&nbsp;</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>&nbsp;</td><td>The type of entity. </td></tr>
 
514
    <tr><td valign="top"></td><td valign="top"><em>publicId</em>&nbsp;</td><td>The public ID of the subset. </td></tr>
 
515
    <tr><td valign="top"></td><td valign="top"><em>systemId</em>&nbsp;</td><td>The system ID of the subset. </td></tr>
 
516
    <tr><td valign="top"></td><td valign="top"><em>content</em>&nbsp;</td><td>The value of the Entity. In entity reference substitutions, this is the replacement value. </td></tr>
 
517
  </table>
 
518
</dl>
 
519
    </td>
 
520
  </tr>
 
521
</table>
 
522
<a class="anchor" name="a4" doxytag="xmlpp::Document::set_internal_subset"></a><p>
 
523
<table class="mdTable" cellpadding="2" cellspacing="0">
 
524
  <tr>
 
525
    <td class="mdRow">
 
526
      <table cellpadding="0" cellspacing="0" border="0">
 
527
        <tr>
 
528
          <td class="md" nowrap valign="top">void xmlpp::Document::set_internal_subset           </td>
 
529
          <td class="md" valign="top">(&nbsp;</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> &amp;&nbsp;</td>
 
531
          <td class="mdname" nowrap> <em>name</em>, </td>
 
532
        </tr>
 
533
        <tr>
 
534
          <td class="md" nowrap align="right"></td>
 
535
          <td class="md"></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> &amp;&nbsp;</td>
 
537
          <td class="mdname" nowrap> <em>external_id</em>, </td>
 
538
        </tr>
 
539
        <tr>
 
540
          <td class="md" nowrap align="right"></td>
 
541
          <td class="md"></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> &amp;&nbsp;</td>
 
543
          <td class="mdname" nowrap> <em>system_id</em></td>
 
544
        </tr>
 
545
        <tr>
 
546
          <td class="md"></td>
 
547
          <td class="md">)&nbsp;</td>
 
548
          <td class="md" colspan="2"></td>
 
549
        </tr>
 
550
      </table>
 
551
    </td>
 
552
  </tr>
 
553
</table>
 
554
<table cellspacing="5" cellpadding="0" border="0">
 
555
  <tr>
 
556
    <td>
 
557
      &nbsp;
 
558
    </td>
 
559
    <td>
 
560
 
 
561
<p>
 
562
    </td>
 
563
  </tr>
 
564
</table>
 
565
<a class="anchor" name="a9" doxytag="xmlpp::Document::write_to_file"></a><p>
 
566
<table class="mdTable" cellpadding="2" cellspacing="0">
 
567
  <tr>
 
568
    <td class="mdRow">
 
569
      <table cellpadding="0" cellspacing="0" border="0">
 
570
        <tr>
 
571
          <td class="md" nowrap valign="top">void xmlpp::Document::write_to_file           </td>
 
572
          <td class="md" valign="top">(&nbsp;</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> &amp;&nbsp;</td>
 
574
          <td class="mdname" nowrap> <em>filename</em>, </td>
 
575
        </tr>
 
576
        <tr>
 
577
          <td class="md" nowrap align="right"></td>
 
578
          <td class="md"></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> &amp;&nbsp;</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>
 
581
        </tr>
 
582
        <tr>
 
583
          <td class="md"></td>
 
584
          <td class="md">)&nbsp;</td>
 
585
          <td class="md" colspan="2"></td>
 
586
        </tr>
 
587
      </table>
 
588
    </td>
 
589
  </tr>
 
590
</table>
 
591
<table cellspacing="5" cellpadding="0" border="0">
 
592
  <tr>
 
593
    <td>
 
594
      &nbsp;
 
595
    </td>
 
596
    <td>
 
597
 
 
598
<p>
 
599
Write the document to a file. 
 
600
<p>
 
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>&nbsp;</td><td></td></tr>
 
604
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
 
605
  </table>
 
606
</dl>
 
607
    </td>
 
608
  </tr>
 
609
</table>
 
610
<a class="anchor" name="a10" doxytag="xmlpp::Document::write_to_file_formatted"></a><p>
 
611
<table class="mdTable" cellpadding="2" cellspacing="0">
 
612
  <tr>
 
613
    <td class="mdRow">
 
614
      <table cellpadding="0" cellspacing="0" border="0">
 
615
        <tr>
 
616
          <td class="md" nowrap valign="top">void xmlpp::Document::write_to_file_formatted           </td>
 
617
          <td class="md" valign="top">(&nbsp;</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> &amp;&nbsp;</td>
 
619
          <td class="mdname" nowrap> <em>filename</em>, </td>
 
620
        </tr>
 
621
        <tr>
 
622
          <td class="md" nowrap align="right"></td>
 
623
          <td class="md"></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> &amp;&nbsp;</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>
 
626
        </tr>
 
627
        <tr>
 
628
          <td class="md"></td>
 
629
          <td class="md">)&nbsp;</td>
 
630
          <td class="md" colspan="2"></td>
 
631
        </tr>
 
632
      </table>
 
633
    </td>
 
634
  </tr>
 
635
</table>
 
636
<table cellspacing="5" cellpadding="0" border="0">
 
637
  <tr>
 
638
    <td>
 
639
      &nbsp;
 
640
    </td>
 
641
    <td>
 
642
 
 
643
<p>
 
644
Write the document to a file. 
 
645
<p>
 
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>&nbsp;</td><td></td></tr>
 
649
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
 
650
  </table>
 
651
</dl>
 
652
    </td>
 
653
  </tr>
 
654
</table>
 
655
<a class="anchor" name="a13" doxytag="xmlpp::Document::write_to_stream"></a><p>
 
656
<table class="mdTable" cellpadding="2" cellspacing="0">
 
657
  <tr>
 
658
    <td class="mdRow">
 
659
      <table cellpadding="0" cellspacing="0" border="0">
 
660
        <tr>
 
661
          <td class="md" nowrap valign="top">void xmlpp::Document::write_to_stream           </td>
 
662
          <td class="md" valign="top">(&nbsp;</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> &amp;&nbsp;</td>
 
664
          <td class="mdname" nowrap> <em>output</em>, </td>
 
665
        </tr>
 
666
        <tr>
 
667
          <td class="md" nowrap align="right"></td>
 
668
          <td class="md"></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> &amp;&nbsp;</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>
 
671
        </tr>
 
672
        <tr>
 
673
          <td class="md"></td>
 
674
          <td class="md">)&nbsp;</td>
 
675
          <td class="md" colspan="2"></td>
 
676
        </tr>
 
677
      </table>
 
678
    </td>
 
679
  </tr>
 
680
</table>
 
681
<table cellspacing="5" cellpadding="0" border="0">
 
682
  <tr>
 
683
    <td>
 
684
      &nbsp;
 
685
    </td>
 
686
    <td>
 
687
 
 
688
<p>
 
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>. 
 
690
<p>
 
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>&nbsp;</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>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
 
695
  </table>
 
696
</dl>
 
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>
 
698
    </td>
 
699
  </tr>
 
700
</table>
 
701
<a class="anchor" name="a14" doxytag="xmlpp::Document::write_to_stream_formatted"></a><p>
 
702
<table class="mdTable" cellpadding="2" cellspacing="0">
 
703
  <tr>
 
704
    <td class="mdRow">
 
705
      <table cellpadding="0" cellspacing="0" border="0">
 
706
        <tr>
 
707
          <td class="md" nowrap valign="top">void xmlpp::Document::write_to_stream_formatted           </td>
 
708
          <td class="md" valign="top">(&nbsp;</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> &amp;&nbsp;</td>
 
710
          <td class="mdname" nowrap> <em>output</em>, </td>
 
711
        </tr>
 
712
        <tr>
 
713
          <td class="md" nowrap align="right"></td>
 
714
          <td class="md"></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> &amp;&nbsp;</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>
 
717
        </tr>
 
718
        <tr>
 
719
          <td class="md"></td>
 
720
          <td class="md">)&nbsp;</td>
 
721
          <td class="md" colspan="2"></td>
 
722
        </tr>
 
723
      </table>
 
724
    </td>
 
725
  </tr>
 
726
</table>
 
727
<table cellspacing="5" cellpadding="0" border="0">
 
728
  <tr>
 
729
    <td>
 
730
      &nbsp;
 
731
    </td>
 
732
    <td>
 
733
 
 
734
<p>
 
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>. 
 
736
<p>
 
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>&nbsp;</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>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
 
741
  </table>
 
742
</dl>
 
743
<dl compact><dt><b>Warning:</b></dt><dd>See write_to_stream </dd></dl>
 
744
    </td>
 
745
  </tr>
 
746
</table>
 
747
<a class="anchor" name="a11" doxytag="xmlpp::Document::write_to_string"></a><p>
 
748
<table class="mdTable" cellpadding="2" cellspacing="0">
 
749
  <tr>
 
750
    <td class="mdRow">
 
751
      <table cellpadding="0" cellspacing="0" border="0">
 
752
        <tr>
 
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">(&nbsp;</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> &amp;&nbsp;</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">&nbsp;)&nbsp;</td>
 
758
          <td class="md" nowrap></td>
 
759
        </tr>
 
760
      </table>
 
761
    </td>
 
762
  </tr>
 
763
</table>
 
764
<table cellspacing="5" cellpadding="0" border="0">
 
765
  <tr>
 
766
    <td>
 
767
      &nbsp;
 
768
    </td>
 
769
    <td>
 
770
 
 
771
<p>
 
772
Write the document to the memory. 
 
773
<p>
 
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>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
 
777
  </table>
 
778
</dl>
 
779
    </td>
 
780
  </tr>
 
781
</table>
 
782
<a class="anchor" name="a12" doxytag="xmlpp::Document::write_to_string_formatted"></a><p>
 
783
<table class="mdTable" cellpadding="2" cellspacing="0">
 
784
  <tr>
 
785
    <td class="mdRow">
 
786
      <table cellpadding="0" cellspacing="0" border="0">
 
787
        <tr>
 
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">(&nbsp;</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> &amp;&nbsp;</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">&nbsp;)&nbsp;</td>
 
793
          <td class="md" nowrap></td>
 
794
        </tr>
 
795
      </table>
 
796
    </td>
 
797
  </tr>
 
798
</table>
 
799
<table cellspacing="5" cellpadding="0" border="0">
 
800
  <tr>
 
801
    <td>
 
802
      &nbsp;
 
803
    </td>
 
804
    <td>
 
805
 
 
806
<p>
 
807
Write the document to the memory. 
 
808
<p>
 
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>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
 
812
  </table>
 
813
</dl>
 
814
<dl compact><dt><b>Returns:</b></dt><dd>The written document. </dd></dl>
 
815
    </td>
 
816
  </tr>
 
817
</table>
 
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">
 
821
  <tr>
 
822
    <td class="mdRow">
 
823
      <table cellpadding="0" cellspacing="0" border="0">
 
824
        <tr>
 
825
          <td class="md" nowrap valign="top">friend class <a class="el" href="classxmlpp_1_1DomParser.html">DomParser</a><code> [friend]</code>          </td>
 
826
        </tr>
 
827
      </table>
 
828
    </td>
 
829
  </tr>
 
830
</table>
 
831
<table cellspacing="5" cellpadding="0" border="0">
 
832
  <tr>
 
833
    <td>
 
834
      &nbsp;
 
835
    </td>
 
836
    <td>
 
837
 
 
838
<p>
 
839
    </td>
 
840
  </tr>
 
841
</table>
 
842
<a class="anchor" name="n1" doxytag="xmlpp::Document::SaxParser"></a><p>
 
843
<table class="mdTable" cellpadding="2" cellspacing="0">
 
844
  <tr>
 
845
    <td class="mdRow">
 
846
      <table cellpadding="0" cellspacing="0" border="0">
 
847
        <tr>
 
848
          <td class="md" nowrap valign="top">friend class <a class="el" href="classxmlpp_1_1SaxParser.html">SaxParser</a><code> [friend]</code>          </td>
 
849
        </tr>
 
850
      </table>
 
851
    </td>
 
852
  </tr>
 
853
</table>
 
854
<table cellspacing="5" cellpadding="0" border="0">
 
855
  <tr>
 
856
    <td>
 
857
      &nbsp;
 
858
    </td>
 
859
    <td>
 
860
 
 
861
<p>
 
862
    </td>
 
863
  </tr>
 
864
</table>
 
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&nbsp;
 
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>
 
870
</body>
 
871
</html>