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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-09-18 11:32:24 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20070918113224-7x031mzf1shoozxx
Tags: 2.20.0-0ubuntu1
* New upstream release:
  - Element: Added get_attribute_value(), to get a simple text value for an
    attribute.
  - Added an experimental --enable-api-exceptions configure option, to allow
    libxml++ to build without exceptions.
* debian/libxml++2.6-doc.docs: 2.18 -> 2.20.

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
 
<link href="tabs.css" rel="stylesheet" type="text/css">
6
 
</head><body>
7
 
<!-- Generated by Doxygen 1.5.1 -->
8
 
<div class="tabs">
9
 
  <ul>
10
 
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11
 
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12
 
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
13
 
    <li><a href="files.html"><span>Files</span></a></li>
14
 
    <li><a href="dirs.html"><span>Directories</span></a></li>
15
 
  </ul></div>
16
 
<div class="tabs">
17
 
  <ul>
18
 
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
19
 
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
20
 
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
21
 
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
22
 
  </ul></div>
23
 
<div class="nav">
24
 
<a class="el" href="namespacexmlpp.html">xmlpp</a>::<a class="el" href="classxmlpp_1_1Document.html">Document</a></div>
25
 
<h1>xmlpp::Document Class Reference</h1><!-- doxytag: class="xmlpp::Document" --><!-- doxytag: inherits="xmlpp::NonCopyable" -->Represents an XML document in the DOM model.  
26
 
<a href="#_details">More...</a>
27
 
<p>
28
 
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>
29
 
<map name="xmlpp_1_1Document__inherit__map">
30
 
<area href="classxmlpp_1_1NonCopyable.html" shape="rect" coords="5,7,168,31" alt="">
31
 
</map>
32
 
<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">
33
 
<tr><td></td></tr>
34
 
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
35
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#8c5c6692e195dcf3aee88dc492f9efed">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=&quot;1.0&quot;)</td></tr>
36
 
 
37
 
<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#77c35c594fc9995970ae9c4f9d77496b">~Document</a> ()</td></tr>
38
 
 
39
 
<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#147105d16f69fd9b6efa87f559615971">get_encoding</a> () const</td></tr>
40
 
 
41
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><dl class="return" compact><dt><b>Returns:</b></dt><dd>The encoding used in the source from which the document has been loaded. </dd></dl>
42
 
 <a href="#147105d16f69fd9b6efa87f559615971"></a><br></td></tr>
43
 
<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#a7213c2edec51f2b80b84dbed8cd4c0c">get_internal_subset</a> () const</td></tr>
44
 
 
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#714dc6c330ae6e00fb285606b8b849a4">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>
46
 
 
47
 
<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#c5c58a795d67253820996cf031e28ca5">get_root_node</a> () const</td></tr>
48
 
 
49
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the root node.  <a href="#c5c58a795d67253820996cf031e28ca5"></a><br></td></tr>
50
 
<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#8552403b511567241856148a6040be23">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>
51
 
 
52
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates the root node.  <a href="#8552403b511567241856148a6040be23"></a><br></td></tr>
53
 
<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#8085d5e40537e2a674063cbddb39f0b8">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>
54
 
 
55
 
<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="#8085d5e40537e2a674063cbddb39f0b8"></a><br></td></tr>
56
 
<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#2d5ebd0f41215d54b9c96dd4ddb49ede">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>
57
 
 
58
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Append a new comment node.  <a href="#2d5ebd0f41215d54b9c96dd4ddb49ede"></a><br></td></tr>
59
 
<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#dbbcae29bde29501f3dfff71f2e81da2">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>
60
 
 
61
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write the document to a file.  <a href="#dbbcae29bde29501f3dfff71f2e81da2"></a><br></td></tr>
62
 
<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#e54075502d81e9d8448e6820bc16eb34">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>
63
 
 
64
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write the document to a file.  <a href="#e54075502d81e9d8448e6820bc16eb34"></a><br></td></tr>
65
 
<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#b63344d932c309062769fd98585e9bc1">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>
66
 
 
67
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write the document to the memory.  <a href="#b63344d932c309062769fd98585e9bc1"></a><br></td></tr>
68
 
<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#c1246acf8c7b51855e9eb12eecefa294">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>
69
 
 
70
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write the document to the memory.  <a href="#c1246acf8c7b51855e9eb12eecefa294"></a><br></td></tr>
71
 
<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#55e593694bdcf67f667f1dbe52cd0794">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>
72
 
 
73
 
<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="#55e593694bdcf67f667f1dbe52cd0794"></a><br></td></tr>
74
 
<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#dd90b2d2d0a837df3f3daec6bccaad2c">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>
75
 
 
76
 
<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="#dd90b2d2d0a837df3f3daec6bccaad2c"></a><br></td></tr>
77
 
<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#d56a99bd883672ba5eac51a545fada40">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#0fa47f0fb103cf9ea460a2fef3f5be49">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>
78
 
 
79
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add an Entity declaration to the document.  <a href="#d56a99bd883672ba5eac51a545fada40"></a><br></td></tr>
80
 
<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#1ebb73b9ac51ca929bfd38f359964a59">cobj</a> ()</td></tr>
81
 
 
82
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access the underlying libxml implementation.  <a href="#1ebb73b9ac51ca929bfd38f359964a59"></a><br></td></tr>
83
 
<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#474a51e3ee6251ef85435ece4ff88f37">cobj</a> () const</td></tr>
84
 
 
85
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access the underlying libxml implementation.  <a href="#474a51e3ee6251ef85435ece4ff88f37"></a><br></td></tr>
86
 
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
87
 
<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#6772b76ee685c3755f8a19ce19f48f35">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>
88
 
 
89
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieve an Entity.  <a href="#6772b76ee685c3755f8a19ce19f48f35"></a><br></td></tr>
90
 
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
91
 
<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#e7e7880266cdc1fcd455c018c64404ff">DomParser</a></td></tr>
92
 
 
93
 
<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#d804f0de41137fa28564abe53c8d27b1">SaxParser</a></td></tr>
94
 
 
95
 
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
96
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><b>Init</b></td></tr>
97
 
 
98
 
</table>
99
 
<hr><a name="_details"></a><h2>Detailed Description</h2>
100
 
Represents an XML document in the DOM model. 
101
 
<p>
102
 
<hr><h2>Constructor &amp; Destructor Documentation</h2>
103
 
<a class="anchor" name="8c5c6692e195dcf3aee88dc492f9efed"></a><!-- doxytag: member="xmlpp::Document::Document" ref="8c5c6692e195dcf3aee88dc492f9efed" args="(const Glib::ustring &amp;version=&quot;1.0&quot;)" -->
104
 
<div class="memitem">
105
 
<div class="memproto">
106
 
      <table class="memname">
107
 
        <tr>
108
 
          <td class="memname">xmlpp::Document::Document           </td>
109
 
          <td>(</td>
110
 
          <td class="paramtype">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>
111
 
          <td class="paramname"> <em>version</em> = <code>&quot;1.0&quot;</code>          </td>
112
 
          <td>&nbsp;)&nbsp;</td>
113
 
          <td width="100%"><code> [explicit]</code></td>
114
 
        </tr>
115
 
      </table>
116
 
</div>
117
 
<div class="memdoc">
118
 
 
119
 
<p>
120
 
 
121
 
</div>
122
 
</div><p>
123
 
<a class="anchor" name="77c35c594fc9995970ae9c4f9d77496b"></a><!-- doxytag: member="xmlpp::Document::~Document" ref="77c35c594fc9995970ae9c4f9d77496b" args="()" -->
124
 
<div class="memitem">
125
 
<div class="memproto">
126
 
      <table class="memname">
127
 
        <tr>
128
 
          <td class="memname">virtual xmlpp::Document::~Document           </td>
129
 
          <td>(</td>
130
 
          <td class="paramname">          </td>
131
 
          <td>&nbsp;)&nbsp;</td>
132
 
          <td width="100%"><code> [virtual]</code></td>
133
 
        </tr>
134
 
      </table>
135
 
</div>
136
 
<div class="memdoc">
137
 
 
138
 
<p>
139
 
 
140
 
</div>
141
 
</div><p>
142
 
<hr><h2>Member Function Documentation</h2>
143
 
<a class="anchor" name="147105d16f69fd9b6efa87f559615971"></a><!-- doxytag: member="xmlpp::Document::get_encoding" ref="147105d16f69fd9b6efa87f559615971" args="() const" -->
144
 
<div class="memitem">
145
 
<div class="memproto">
146
 
      <table class="memname">
147
 
        <tr>
148
 
          <td class="memname"><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>
149
 
          <td>(</td>
150
 
          <td class="paramname">          </td>
151
 
          <td>&nbsp;)&nbsp;</td>
152
 
          <td width="100%"> const</td>
153
 
        </tr>
154
 
      </table>
155
 
</div>
156
 
<div class="memdoc">
157
 
 
158
 
<p>
159
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The encoding used in the source from which the document has been loaded. </dd></dl>
160
 
 
161
 
<p>
162
 
 
163
 
</div>
164
 
</div><p>
165
 
<a class="anchor" name="a7213c2edec51f2b80b84dbed8cd4c0c"></a><!-- doxytag: member="xmlpp::Document::get_internal_subset" ref="a7213c2edec51f2b80b84dbed8cd4c0c" args="() const" -->
166
 
<div class="memitem">
167
 
<div class="memproto">
168
 
      <table class="memname">
169
 
        <tr>
170
 
          <td class="memname"><a class="el" href="classxmlpp_1_1Dtd.html">Dtd</a>* xmlpp::Document::get_internal_subset           </td>
171
 
          <td>(</td>
172
 
          <td class="paramname">          </td>
173
 
          <td>&nbsp;)&nbsp;</td>
174
 
          <td width="100%"> const</td>
175
 
        </tr>
176
 
      </table>
177
 
</div>
178
 
<div class="memdoc">
179
 
 
180
 
<p>
181
 
 
182
 
</div>
183
 
</div><p>
184
 
<a class="anchor" name="714dc6c330ae6e00fb285606b8b849a4"></a><!-- doxytag: member="xmlpp::Document::set_internal_subset" ref="714dc6c330ae6e00fb285606b8b849a4" args="(const Glib::ustring &amp;name, const Glib::ustring &amp;external_id, const Glib::ustring &amp;system_id)" -->
185
 
<div class="memitem">
186
 
<div class="memproto">
187
 
      <table class="memname">
188
 
        <tr>
189
 
          <td class="memname">void xmlpp::Document::set_internal_subset           </td>
190
 
          <td>(</td>
191
 
          <td class="paramtype">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>
192
 
          <td class="paramname"> <em>name</em>, </td>
193
 
        </tr>
194
 
        <tr>
195
 
          <td class="paramkey"></td>
196
 
          <td></td>
197
 
          <td class="paramtype">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>
198
 
          <td class="paramname"> <em>external_id</em>, </td>
199
 
        </tr>
200
 
        <tr>
201
 
          <td class="paramkey"></td>
202
 
          <td></td>
203
 
          <td class="paramtype">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>
204
 
          <td class="paramname"> <em>system_id</em></td><td>&nbsp;</td>
205
 
        </tr>
206
 
        <tr>
207
 
          <td></td>
208
 
          <td>)</td>
209
 
          <td></td><td></td><td width="100%"></td>
210
 
        </tr>
211
 
      </table>
212
 
</div>
213
 
<div class="memdoc">
214
 
 
215
 
<p>
216
 
 
217
 
</div>
218
 
</div><p>
219
 
<a class="anchor" name="c5c58a795d67253820996cf031e28ca5"></a><!-- doxytag: member="xmlpp::Document::get_root_node" ref="c5c58a795d67253820996cf031e28ca5" args="() const" -->
220
 
<div class="memitem">
221
 
<div class="memproto">
222
 
      <table class="memname">
223
 
        <tr>
224
 
          <td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::get_root_node           </td>
225
 
          <td>(</td>
226
 
          <td class="paramname">          </td>
227
 
          <td>&nbsp;)&nbsp;</td>
228
 
          <td width="100%"> const</td>
229
 
        </tr>
230
 
      </table>
231
 
</div>
232
 
<div class="memdoc">
233
 
 
234
 
<p>
235
 
Return the root node. 
236
 
<p>
237
 
This function does _not_ create a default root node if it doesn't exist. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the root node if it exists, 0 otherwise. </dd></dl>
238
 
 
239
 
</div>
240
 
</div><p>
241
 
<a class="anchor" name="8552403b511567241856148a6040be23"></a><!-- doxytag: member="xmlpp::Document::create_root_node" ref="8552403b511567241856148a6040be23" args="(const Glib::ustring &amp;name, const Glib::ustring &amp;ns_uri=Glib::ustring(), const Glib::ustring &amp;ns_prefix=Glib::ustring())" -->
242
 
<div class="memitem">
243
 
<div class="memproto">
244
 
      <table class="memname">
245
 
        <tr>
246
 
          <td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::create_root_node           </td>
247
 
          <td>(</td>
248
 
          <td class="paramtype">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>
249
 
          <td class="paramname"> <em>name</em>, </td>
250
 
        </tr>
251
 
        <tr>
252
 
          <td class="paramkey"></td>
253
 
          <td></td>
254
 
          <td class="paramtype">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>
255
 
          <td class="paramname"> <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>
256
 
        </tr>
257
 
        <tr>
258
 
          <td class="paramkey"></td>
259
 
          <td></td>
260
 
          <td class="paramtype">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>
261
 
          <td class="paramname"> <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><td>&nbsp;</td>
262
 
        </tr>
263
 
        <tr>
264
 
          <td></td>
265
 
          <td>)</td>
266
 
          <td></td><td></td><td width="100%"></td>
267
 
        </tr>
268
 
      </table>
269
 
</div>
270
 
<div class="memdoc">
271
 
 
272
 
<p>
273
 
Creates the root node. 
274
 
<p>
275
 
<dl compact><dt><b>Parameters:</b></dt><dd>
276
 
  <table border="0" cellspacing="2" cellpadding="0">
277
 
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The node's name. </td></tr>
278
 
    <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>
279
 
    <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>
280
 
  </table>
281
 
</dl>
282
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the new root node </dd></dl>
283
 
 
284
 
</div>
285
 
</div><p>
286
 
<a class="anchor" name="8085d5e40537e2a674063cbddb39f0b8"></a><!-- doxytag: member="xmlpp::Document::create_root_node_by_import" ref="8085d5e40537e2a674063cbddb39f0b8" args="(const Node *node, bool recursive=true)" -->
287
 
<div class="memitem">
288
 
<div class="memproto">
289
 
      <table class="memname">
290
 
        <tr>
291
 
          <td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::create_root_node_by_import           </td>
292
 
          <td>(</td>
293
 
          <td class="paramtype">const <a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td>
294
 
          <td class="paramname"> <em>node</em>, </td>
295
 
        </tr>
296
 
        <tr>
297
 
          <td class="paramkey"></td>
298
 
          <td></td>
299
 
          <td class="paramtype"><a class="el" href="classbool.html">bool</a>&nbsp;</td>
300
 
          <td class="paramname"> <em>recursive</em> = <code>true</code></td><td>&nbsp;</td>
301
 
        </tr>
302
 
        <tr>
303
 
          <td></td>
304
 
          <td>)</td>
305
 
          <td></td><td></td><td width="100%"></td>
306
 
        </tr>
307
 
      </table>
308
 
</div>
309
 
<div class="memdoc">
310
 
 
311
 
<p>
312
 
Creates a root node by importing the node from another document, without affecting the source node. 
313
 
<p>
314
 
<dl compact><dt><b>Parameters:</b></dt><dd>
315
 
  <table border="0" cellspacing="2" cellpadding="0">
316
 
    <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>
317
 
    <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>
318
 
  </table>
319
 
</dl>
320
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the new root node </dd></dl>
321
 
 
322
 
</div>
323
 
</div><p>
324
 
<a class="anchor" name="2d5ebd0f41215d54b9c96dd4ddb49ede"></a><!-- doxytag: member="xmlpp::Document::add_comment" ref="2d5ebd0f41215d54b9c96dd4ddb49ede" args="(const Glib::ustring &amp;content)" -->
325
 
<div class="memitem">
326
 
<div class="memproto">
327
 
      <table class="memname">
328
 
        <tr>
329
 
          <td class="memname"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* xmlpp::Document::add_comment           </td>
330
 
          <td>(</td>
331
 
          <td class="paramtype">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>
332
 
          <td class="paramname"> <em>content</em>          </td>
333
 
          <td>&nbsp;)&nbsp;</td>
334
 
          <td width="100%"></td>
335
 
        </tr>
336
 
      </table>
337
 
</div>
338
 
<div class="memdoc">
339
 
 
340
 
<p>
341
 
Append a new comment node. 
342
 
<p>
343
 
<dl compact><dt><b>Parameters:</b></dt><dd>
344
 
  <table border="0" cellspacing="2" cellpadding="0">
345
 
    <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#2e9978caa82eb11cadccd4d5fc4e690a">ContentNode::set_content()</a>. </td></tr>
346
 
  </table>
347
 
</dl>
348
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new comment node. </dd></dl>
349
 
 
350
 
</div>
351
 
</div><p>
352
 
<a class="anchor" name="dbbcae29bde29501f3dfff71f2e81da2"></a><!-- doxytag: member="xmlpp::Document::write_to_file" ref="dbbcae29bde29501f3dfff71f2e81da2" args="(const Glib::ustring &amp;filename, const Glib::ustring &amp;encoding=Glib::ustring())" -->
353
 
<div class="memitem">
354
 
<div class="memproto">
355
 
      <table class="memname">
356
 
        <tr>
357
 
          <td class="memname">void xmlpp::Document::write_to_file           </td>
358
 
          <td>(</td>
359
 
          <td class="paramtype">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>
360
 
          <td class="paramname"> <em>filename</em>, </td>
361
 
        </tr>
362
 
        <tr>
363
 
          <td class="paramkey"></td>
364
 
          <td></td>
365
 
          <td class="paramtype">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>
366
 
          <td class="paramname"> <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><td>&nbsp;</td>
367
 
        </tr>
368
 
        <tr>
369
 
          <td></td>
370
 
          <td>)</td>
371
 
          <td></td><td></td><td width="100%"></td>
372
 
        </tr>
373
 
      </table>
374
 
</div>
375
 
<div class="memdoc">
376
 
 
377
 
<p>
378
 
Write the document to a file. 
379
 
<p>
380
 
<dl compact><dt><b>Parameters:</b></dt><dd>
381
 
  <table border="0" cellspacing="2" cellpadding="0">
382
 
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td></td></tr>
383
 
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
384
 
  </table>
385
 
</dl>
386
 
 
387
 
</div>
388
 
</div><p>
389
 
<a class="anchor" name="e54075502d81e9d8448e6820bc16eb34"></a><!-- doxytag: member="xmlpp::Document::write_to_file_formatted" ref="e54075502d81e9d8448e6820bc16eb34" args="(const Glib::ustring &amp;filename, const Glib::ustring &amp;encoding=Glib::ustring())" -->
390
 
<div class="memitem">
391
 
<div class="memproto">
392
 
      <table class="memname">
393
 
        <tr>
394
 
          <td class="memname">void xmlpp::Document::write_to_file_formatted           </td>
395
 
          <td>(</td>
396
 
          <td class="paramtype">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>
397
 
          <td class="paramname"> <em>filename</em>, </td>
398
 
        </tr>
399
 
        <tr>
400
 
          <td class="paramkey"></td>
401
 
          <td></td>
402
 
          <td class="paramtype">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>
403
 
          <td class="paramname"> <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><td>&nbsp;</td>
404
 
        </tr>
405
 
        <tr>
406
 
          <td></td>
407
 
          <td>)</td>
408
 
          <td></td><td></td><td width="100%"></td>
409
 
        </tr>
410
 
      </table>
411
 
</div>
412
 
<div class="memdoc">
413
 
 
414
 
<p>
415
 
Write the document to a file. 
416
 
<p>
417
 
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>
418
 
  <table border="0" cellspacing="2" cellpadding="0">
419
 
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td></td></tr>
420
 
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
421
 
  </table>
422
 
</dl>
423
 
 
424
 
</div>
425
 
</div><p>
426
 
<a class="anchor" name="b63344d932c309062769fd98585e9bc1"></a><!-- doxytag: member="xmlpp::Document::write_to_string" ref="b63344d932c309062769fd98585e9bc1" args="(const Glib::ustring &amp;encoding=Glib::ustring())" -->
427
 
<div class="memitem">
428
 
<div class="memproto">
429
 
      <table class="memname">
430
 
        <tr>
431
 
          <td class="memname"><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>
432
 
          <td>(</td>
433
 
          <td class="paramtype">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>
434
 
          <td class="paramname"> <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>
435
 
          <td>&nbsp;)&nbsp;</td>
436
 
          <td width="100%"></td>
437
 
        </tr>
438
 
      </table>
439
 
</div>
440
 
<div class="memdoc">
441
 
 
442
 
<p>
443
 
Write the document to the memory. 
444
 
<p>
445
 
<dl compact><dt><b>Parameters:</b></dt><dd>
446
 
  <table border="0" cellspacing="2" cellpadding="0">
447
 
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
448
 
  </table>
449
 
</dl>
450
 
 
451
 
</div>
452
 
</div><p>
453
 
<a class="anchor" name="c1246acf8c7b51855e9eb12eecefa294"></a><!-- doxytag: member="xmlpp::Document::write_to_string_formatted" ref="c1246acf8c7b51855e9eb12eecefa294" args="(const Glib::ustring &amp;encoding=Glib::ustring())" -->
454
 
<div class="memitem">
455
 
<div class="memproto">
456
 
      <table class="memname">
457
 
        <tr>
458
 
          <td class="memname"><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>
459
 
          <td>(</td>
460
 
          <td class="paramtype">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>
461
 
          <td class="paramname"> <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>
462
 
          <td>&nbsp;)&nbsp;</td>
463
 
          <td width="100%"></td>
464
 
        </tr>
465
 
      </table>
466
 
</div>
467
 
<div class="memdoc">
468
 
 
469
 
<p>
470
 
Write the document to the memory. 
471
 
<p>
472
 
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>
473
 
  <table border="0" cellspacing="2" cellpadding="0">
474
 
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
475
 
  </table>
476
 
</dl>
477
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The written document. </dd></dl>
478
 
 
479
 
</div>
480
 
</div><p>
481
 
<a class="anchor" name="55e593694bdcf67f667f1dbe52cd0794"></a><!-- doxytag: member="xmlpp::Document::write_to_stream" ref="55e593694bdcf67f667f1dbe52cd0794" args="(std::ostream &amp;output, const Glib::ustring &amp;encoding=Glib::ustring())" -->
482
 
<div class="memitem">
483
 
<div class="memproto">
484
 
      <table class="memname">
485
 
        <tr>
486
 
          <td class="memname">void xmlpp::Document::write_to_stream           </td>
487
 
          <td>(</td>
488
 
          <td class="paramtype"><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>
489
 
          <td class="paramname"> <em>output</em>, </td>
490
 
        </tr>
491
 
        <tr>
492
 
          <td class="paramkey"></td>
493
 
          <td></td>
494
 
          <td class="paramtype">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>
495
 
          <td class="paramname"> <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><td>&nbsp;</td>
496
 
        </tr>
497
 
        <tr>
498
 
          <td></td>
499
 
          <td>)</td>
500
 
          <td></td><td></td><td width="100%"></td>
501
 
        </tr>
502
 
      </table>
503
 
</div>
504
 
<div class="memdoc">
505
 
 
506
 
<p>
507
 
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>. 
508
 
<p>
509
 
<dl compact><dt><b>Parameters:</b></dt><dd>
510
 
  <table border="0" cellspacing="2" cellpadding="0">
511
 
    <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>
512
 
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
513
 
  </table>
514
 
</dl>
515
 
<dl class="warning" 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>
516
 
 
517
 
</div>
518
 
</div><p>
519
 
<a class="anchor" name="dd90b2d2d0a837df3f3daec6bccaad2c"></a><!-- doxytag: member="xmlpp::Document::write_to_stream_formatted" ref="dd90b2d2d0a837df3f3daec6bccaad2c" args="(std::ostream &amp;output, const Glib::ustring &amp;encoding=Glib::ustring())" -->
520
 
<div class="memitem">
521
 
<div class="memproto">
522
 
      <table class="memname">
523
 
        <tr>
524
 
          <td class="memname">void xmlpp::Document::write_to_stream_formatted           </td>
525
 
          <td>(</td>
526
 
          <td class="paramtype"><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>
527
 
          <td class="paramname"> <em>output</em>, </td>
528
 
        </tr>
529
 
        <tr>
530
 
          <td class="paramkey"></td>
531
 
          <td></td>
532
 
          <td class="paramtype">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>
533
 
          <td class="paramname"> <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><td>&nbsp;</td>
534
 
        </tr>
535
 
        <tr>
536
 
          <td></td>
537
 
          <td>)</td>
538
 
          <td></td><td></td><td width="100%"></td>
539
 
        </tr>
540
 
      </table>
541
 
</div>
542
 
<div class="memdoc">
543
 
 
544
 
<p>
545
 
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>. 
546
 
<p>
547
 
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>
548
 
  <table border="0" cellspacing="2" cellpadding="0">
549
 
    <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>
550
 
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>If not provided, UTF-8 is used </td></tr>
551
 
  </table>
552
 
</dl>
553
 
<dl class="warning" compact><dt><b>Warning:</b></dt><dd>See write_to_stream </dd></dl>
554
 
 
555
 
</div>
556
 
</div><p>
557
 
<a class="anchor" name="d56a99bd883672ba5eac51a545fada40"></a><!-- doxytag: member="xmlpp::Document::set_entity_declaration" ref="d56a99bd883672ba5eac51a545fada40" args="(const Glib::ustring &amp;name, XmlEntityType type, const Glib::ustring &amp;publicId, const Glib::ustring &amp;systemId, const Glib::ustring &amp;content)" -->
558
 
<div class="memitem">
559
 
<div class="memproto">
560
 
      <table class="memname">
561
 
        <tr>
562
 
          <td class="memname">virtual void xmlpp::Document::set_entity_declaration           </td>
563
 
          <td>(</td>
564
 
          <td class="paramtype">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>
565
 
          <td class="paramname"> <em>name</em>, </td>
566
 
        </tr>
567
 
        <tr>
568
 
          <td class="paramkey"></td>
569
 
          <td></td>
570
 
          <td class="paramtype"><a class="el" href="namespacexmlpp.html#0fa47f0fb103cf9ea460a2fef3f5be49">XmlEntityType</a>&nbsp;</td>
571
 
          <td class="paramname"> <em>type</em>, </td>
572
 
        </tr>
573
 
        <tr>
574
 
          <td class="paramkey"></td>
575
 
          <td></td>
576
 
          <td class="paramtype">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>
577
 
          <td class="paramname"> <em>publicId</em>, </td>
578
 
        </tr>
579
 
        <tr>
580
 
          <td class="paramkey"></td>
581
 
          <td></td>
582
 
          <td class="paramtype">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>
583
 
          <td class="paramname"> <em>systemId</em>, </td>
584
 
        </tr>
585
 
        <tr>
586
 
          <td class="paramkey"></td>
587
 
          <td></td>
588
 
          <td class="paramtype">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>
589
 
          <td class="paramname"> <em>content</em></td><td>&nbsp;</td>
590
 
        </tr>
591
 
        <tr>
592
 
          <td></td>
593
 
          <td>)</td>
594
 
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
595
 
        </tr>
596
 
      </table>
597
 
</div>
598
 
<div class="memdoc">
599
 
 
600
 
<p>
601
 
Add an Entity declaration to the document. 
602
 
<p>
603
 
<dl compact><dt><b>Parameters:</b></dt><dd>
604
 
  <table border="0" cellspacing="2" cellpadding="0">
605
 
    <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>
606
 
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>The type of entity. </td></tr>
607
 
    <tr><td valign="top"></td><td valign="top"><em>publicId</em>&nbsp;</td><td>The public ID of the subset. </td></tr>
608
 
    <tr><td valign="top"></td><td valign="top"><em>systemId</em>&nbsp;</td><td>The system ID of the subset. </td></tr>
609
 
    <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>
610
 
  </table>
611
 
</dl>
612
 
 
613
 
</div>
614
 
</div><p>
615
 
<a class="anchor" name="1ebb73b9ac51ca929bfd38f359964a59"></a><!-- doxytag: member="xmlpp::Document::cobj" ref="1ebb73b9ac51ca929bfd38f359964a59" args="()" -->
616
 
<div class="memitem">
617
 
<div class="memproto">
618
 
      <table class="memname">
619
 
        <tr>
620
 
          <td class="memname">_xmlDoc* xmlpp::Document::cobj           </td>
621
 
          <td>(</td>
622
 
          <td class="paramname">          </td>
623
 
          <td>&nbsp;)&nbsp;</td>
624
 
          <td width="100%"></td>
625
 
        </tr>
626
 
      </table>
627
 
</div>
628
 
<div class="memdoc">
629
 
 
630
 
<p>
631
 
Access the underlying libxml implementation. 
632
 
<p>
633
 
 
634
 
</div>
635
 
</div><p>
636
 
<a class="anchor" name="474a51e3ee6251ef85435ece4ff88f37"></a><!-- doxytag: member="xmlpp::Document::cobj" ref="474a51e3ee6251ef85435ece4ff88f37" args="() const" -->
637
 
<div class="memitem">
638
 
<div class="memproto">
639
 
      <table class="memname">
640
 
        <tr>
641
 
          <td class="memname">const _xmlDoc* xmlpp::Document::cobj           </td>
642
 
          <td>(</td>
643
 
          <td class="paramname">          </td>
644
 
          <td>&nbsp;)&nbsp;</td>
645
 
          <td width="100%"> const</td>
646
 
        </tr>
647
 
      </table>
648
 
</div>
649
 
<div class="memdoc">
650
 
 
651
 
<p>
652
 
Access the underlying libxml implementation. 
653
 
<p>
654
 
 
655
 
</div>
656
 
</div><p>
657
 
<a class="anchor" name="6772b76ee685c3755f8a19ce19f48f35"></a><!-- doxytag: member="xmlpp::Document::get_entity" ref="6772b76ee685c3755f8a19ce19f48f35" args="(const Glib::ustring &amp;name)" -->
658
 
<div class="memitem">
659
 
<div class="memproto">
660
 
      <table class="memname">
661
 
        <tr>
662
 
          <td class="memname">_xmlEntity* xmlpp::Document::get_entity           </td>
663
 
          <td>(</td>
664
 
          <td class="paramtype">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>
665
 
          <td class="paramname"> <em>name</em>          </td>
666
 
          <td>&nbsp;)&nbsp;</td>
667
 
          <td width="100%"><code> [protected]</code></td>
668
 
        </tr>
669
 
      </table>
670
 
</div>
671
 
<div class="memdoc">
672
 
 
673
 
<p>
674
 
Retrieve an Entity. 
675
 
<p>
676
 
The entity can be from an external subset or internally declared. <dl compact><dt><b>Parameters:</b></dt><dd>
677
 
  <table border="0" cellspacing="2" cellpadding="0">
678
 
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>Then name of the entity to get. </td></tr>
679
 
  </table>
680
 
</dl>
681
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the libxml2 entity structure. </dd></dl>
682
 
 
683
 
</div>
684
 
</div><p>
685
 
<hr><h2>Friends And Related Function Documentation</h2>
686
 
<a class="anchor" name="e7e7880266cdc1fcd455c018c64404ff"></a><!-- doxytag: member="xmlpp::Document::DomParser" ref="e7e7880266cdc1fcd455c018c64404ff" args="" -->
687
 
<div class="memitem">
688
 
<div class="memproto">
689
 
      <table class="memname">
690
 
        <tr>
691
 
          <td class="memname">friend class <a class="el" href="classxmlpp_1_1DomParser.html">DomParser</a><code> [friend]</code>          </td>
692
 
        </tr>
693
 
      </table>
694
 
</div>
695
 
<div class="memdoc">
696
 
 
697
 
<p>
698
 
 
699
 
</div>
700
 
</div><p>
701
 
<a class="anchor" name="d804f0de41137fa28564abe53c8d27b1"></a><!-- doxytag: member="xmlpp::Document::SaxParser" ref="d804f0de41137fa28564abe53c8d27b1" args="" -->
702
 
<div class="memitem">
703
 
<div class="memproto">
704
 
      <table class="memname">
705
 
        <tr>
706
 
          <td class="memname">friend class <a class="el" href="classxmlpp_1_1SaxParser.html">SaxParser</a><code> [friend]</code>          </td>
707
 
        </tr>
708
 
      </table>
709
 
</div>
710
 
<div class="memdoc">
711
 
 
712
 
<p>
713
 
 
714
 
</div>
715
 
</div><p>
716
 
<hr>The documentation for this class was generated from the following file:<ul>
717
 
<li><a class="el" href="document_8h.html">document.h</a></ul>
718
 
<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 5 15:24:37 2007 for libxml++ by&nbsp;
719
 
<a href="http://www.doxygen.org/index.html">
720
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
721
 
</body>
722
 
</html>