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

« back to all changes in this revision

Viewing changes to docs/reference/2.17/html/classxmlpp_1_1Element.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-11-17 14:53:51 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061117145351-2a403c6h54pzia5l
Tags: 2.17.1-0ubuntu1
* New upstream release: 
  - Node: Added get_parent()
  - TextReader: Added TextReader(const char* data) constructor, for parsing 
    memory buffers.
  - Element::set_attribute(): Really return the new attribute.
  - Build: Added MS Visual Studio 2005 project files.
* debian/control:
  - remove duplicate doxygen build-dep.
* debian/rules, debian/libxml++2.6-doc.docs:
  - 2.14 -> 2.17.

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::Element 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.4.6 -->
 
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_1Element.html">Element</a></div>
 
25
<h1>xmlpp::Element Class Reference</h1><!-- doxytag: class="xmlpp::Element" --><!-- doxytag: inherits="xmlpp::Node" --><a class="el" href="classxmlpp_1_1Element.html">Element</a> nodes have attributes as well as child nodes.  
 
26
<a href="#_details">More...</a>
 
27
<p>
 
28
Inheritance diagram for xmlpp::Element:<p><center><img src="classxmlpp_1_1Element__inherit__graph.jpg" border="0" usemap="#xmlpp_1_1Element__inherit__map" alt="Inheritance graph"></center>
 
29
<map name="xmlpp_1_1Element__inherit__map">
 
30
<area href="classxmlpp_1_1Node.html" shape="rect" coords="32,84,130,108" alt="">
 
31
<area href="classxmlpp_1_1NonCopyable.html" shape="rect" coords="8,9,154,33" alt="">
 
32
</map>
 
33
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxmlpp_1_1Element-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
 
34
<tr><td></td></tr>
 
35
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
 
36
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <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_1list.html">std::list</a>&lt; <a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#7c54c83af3dfeddf2a70dba5ca6cc1d1">AttributeList</a></td></tr>
 
37
 
 
38
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
 
39
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#ddce07f26b8ca52beb583d942375a756">Element</a> (_xmlNode *node)</td></tr>
 
40
 
 
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#6633bfbb6b3b6520ab9ac8fa4991b066">~Element</a> ()</td></tr>
 
42
 
 
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#801e28a85e4c45d145d056c5ff7186f3">set_namespace_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;ns_uri, 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>
 
44
 
 
45
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This adds a namespace declaration to this node which will apply to this node and all children.  <a href="#801e28a85e4c45d145d056c5ff7186f3"></a><br></td></tr>
 
46
<tr><td class="memItemLeft" nowrap align="right" 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_1list.html">AttributeList</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#8fbb85e7ecabc5a8b9b39638f94e4fb7">get_attributes</a> ()</td></tr>
 
47
 
 
48
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Obtain the list of attributes for this element.  <a href="#8fbb85e7ecabc5a8b9b39638f94e4fb7"></a><br></td></tr>
 
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <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_1list.html">AttributeList</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#fc9883eee2a4fb0584a60b21b5d2673b">get_attributes</a> () const </td></tr>
 
50
 
 
51
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Obtain the list of attributes for this element.  <a href="#fc9883eee2a4fb0584a60b21b5d2673b"></a><br></td></tr>
 
52
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#21fcf0bb1ee913fb698d2ab8911dda77">get_attribute</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_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>()) const </td></tr>
 
53
 
 
54
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#359b10f76db129fff5776c8405ac8e9a">set_attribute</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;value, 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>
 
55
 
 
56
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the value of the attribute with this name, and optionally with this namespace.  <a href="#359b10f76db129fff5776c8405ac8e9a"></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_1Element.html#3d5765f07699dc8d4d55c0b0157defad">remove_attribute</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_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>
 
58
 
 
59
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove the attribute with this name, and optionally with this namespace.  <a href="#3d5765f07699dc8d4d55c0b0157defad"></a><br></td></tr>
 
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#71885eacc99a1e7812b47d3d0607423a">get_child_text</a> ()</td></tr>
 
61
 
 
62
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the first child text content node.  <a href="#71885eacc99a1e7812b47d3d0607423a"></a><br></td></tr>
 
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#0a2326904a79f2e2abb5c91a4107fa6f">get_child_text</a> () const </td></tr>
 
64
 
 
65
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the first child text content node.  <a href="#0a2326904a79f2e2abb5c91a4107fa6f"></a><br></td></tr>
 
66
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#15cd56e871aaf9625b7f4fbedb97c764">add_child_text</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=<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>
 
67
 
 
68
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Append a new text node.  <a href="#15cd56e871aaf9625b7f4fbedb97c764"></a><br></td></tr>
 
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#9be4234049fe13f2941d9c7a5dbc37e2">set_child_text</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>
 
70
 
 
71
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the text of the first text node, adding one if necessary.  <a href="#9be4234049fe13f2941d9c7a5dbc37e2"></a><br></td></tr>
 
72
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbool.html">bool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#40d1299122bd9921fcb544ca1236aa95">has_child_text</a> () const </td></tr>
 
73
 
 
74
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Discover whether one of the child nodes is a text node.  <a href="#40d1299122bd9921fcb544ca1236aa95"></a><br></td></tr>
 
75
<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_1Element.html#f69479710a4ab4cd8e89703a20dd360e">add_child_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>
 
76
 
 
77
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Append a new comment node.  <a href="#f69479710a4ab4cd8e89703a20dd360e"></a><br></td></tr>
 
78
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
 
79
<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_1Element.html#f4c996b3eed332ed7e4e3096427e624d">get_namespace_uri_for_prefix</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) const </td></tr>
 
80
 
 
81
</table>
 
82
<hr><a name="_details"></a><h2>Detailed Description</h2>
 
83
<a class="el" href="classxmlpp_1_1Element.html">Element</a> nodes have attributes as well as child nodes. 
 
84
<p>
 
85
This will be instantiated by the parser. 
 
86
<p>
 
87
<hr><h2>Member Typedef Documentation</h2>
 
88
<a class="anchor" name="7c54c83af3dfeddf2a70dba5ca6cc1d1"></a><!-- doxytag: member="xmlpp::Element::AttributeList" ref="7c54c83af3dfeddf2a70dba5ca6cc1d1" args="" --><p>
 
89
<table class="mdTable" cellpadding="2" cellspacing="0">
 
90
  <tr>
 
91
    <td class="mdRow">
 
92
      <table cellpadding="0" cellspacing="0" border="0">
 
93
        <tr>
 
94
          <td class="md" nowrap valign="top">typedef <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_1list.html">std::list</a>&lt;<a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>*&gt; <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_1list.html">xmlpp::Element::AttributeList</a>          </td>
 
95
        </tr>
 
96
      </table>
 
97
    </td>
 
98
  </tr>
 
99
</table>
 
100
<table cellspacing="5" cellpadding="0" border="0">
 
101
  <tr>
 
102
    <td>
 
103
      &nbsp;
 
104
    </td>
 
105
    <td>
 
106
 
 
107
<p>
 
108
    </td>
 
109
  </tr>
 
110
</table>
 
111
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
112
<a class="anchor" name="ddce07f26b8ca52beb583d942375a756"></a><!-- doxytag: member="xmlpp::Element::Element" ref="ddce07f26b8ca52beb583d942375a756" args="(_xmlNode *node)" --><p>
 
113
<table class="mdTable" cellpadding="2" cellspacing="0">
 
114
  <tr>
 
115
    <td class="mdRow">
 
116
      <table cellpadding="0" cellspacing="0" border="0">
 
117
        <tr>
 
118
          <td class="md" nowrap valign="top">xmlpp::Element::Element           </td>
 
119
          <td class="md" valign="top">(&nbsp;</td>
 
120
          <td class="md" nowrap valign="top">_xmlNode *&nbsp;</td>
 
121
          <td class="mdname1" valign="top" nowrap> <em>node</em>          </td>
 
122
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
123
          <td class="md" nowrap><code> [explicit]</code></td>
 
124
        </tr>
 
125
      </table>
 
126
    </td>
 
127
  </tr>
 
128
</table>
 
129
<table cellspacing="5" cellpadding="0" border="0">
 
130
  <tr>
 
131
    <td>
 
132
      &nbsp;
 
133
    </td>
 
134
    <td>
 
135
 
 
136
<p>
 
137
    </td>
 
138
  </tr>
 
139
</table>
 
140
<a class="anchor" name="6633bfbb6b3b6520ab9ac8fa4991b066"></a><!-- doxytag: member="xmlpp::Element::~Element" ref="6633bfbb6b3b6520ab9ac8fa4991b066" args="()" --><p>
 
141
<table class="mdTable" cellpadding="2" cellspacing="0">
 
142
  <tr>
 
143
    <td class="mdRow">
 
144
      <table cellpadding="0" cellspacing="0" border="0">
 
145
        <tr>
 
146
          <td class="md" nowrap valign="top">virtual xmlpp::Element::~Element           </td>
 
147
          <td class="md" valign="top">(&nbsp;</td>
 
148
          <td class="mdname1" valign="top" nowrap>          </td>
 
149
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
150
          <td class="md" nowrap><code> [virtual]</code></td>
 
151
        </tr>
 
152
      </table>
 
153
    </td>
 
154
  </tr>
 
155
</table>
 
156
<table cellspacing="5" cellpadding="0" border="0">
 
157
  <tr>
 
158
    <td>
 
159
      &nbsp;
 
160
    </td>
 
161
    <td>
 
162
 
 
163
<p>
 
164
    </td>
 
165
  </tr>
 
166
</table>
 
167
<hr><h2>Member Function Documentation</h2>
 
168
<a class="anchor" name="f69479710a4ab4cd8e89703a20dd360e"></a><!-- doxytag: member="xmlpp::Element::add_child_comment" ref="f69479710a4ab4cd8e89703a20dd360e" args="(const Glib::ustring &amp;content)" --><p>
 
169
<table class="mdTable" cellpadding="2" cellspacing="0">
 
170
  <tr>
 
171
    <td class="mdRow">
 
172
      <table cellpadding="0" cellspacing="0" border="0">
 
173
        <tr>
 
174
          <td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* xmlpp::Element::add_child_comment           </td>
 
175
          <td class="md" valign="top">(&nbsp;</td>
 
176
          <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>
 
177
          <td class="mdname1" valign="top" nowrap> <em>content</em>          </td>
 
178
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
179
          <td class="md" nowrap></td>
 
180
        </tr>
 
181
      </table>
 
182
    </td>
 
183
  </tr>
 
184
</table>
 
185
<table cellspacing="5" cellpadding="0" border="0">
 
186
  <tr>
 
187
    <td>
 
188
      &nbsp;
 
189
    </td>
 
190
    <td>
 
191
 
 
192
<p>
 
193
Append a new comment node. 
 
194
<p>
 
195
<dl compact><dt><b>Parameters:</b></dt><dd>
 
196
  <table border="0" cellspacing="2" cellpadding="0">
 
197
    <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>
 
198
  </table>
 
199
</dl>
 
200
<dl compact><dt><b>Returns:</b></dt><dd>The new comment node. </dd></dl>
 
201
    </td>
 
202
  </tr>
 
203
</table>
 
204
<a class="anchor" name="15cd56e871aaf9625b7f4fbedb97c764"></a><!-- doxytag: member="xmlpp::Element::add_child_text" ref="15cd56e871aaf9625b7f4fbedb97c764" args="(const Glib::ustring &amp;content=Glib::ustring())" --><p>
 
205
<table class="mdTable" cellpadding="2" cellspacing="0">
 
206
  <tr>
 
207
    <td class="mdRow">
 
208
      <table cellpadding="0" cellspacing="0" border="0">
 
209
        <tr>
 
210
          <td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::add_child_text           </td>
 
211
          <td class="md" valign="top">(&nbsp;</td>
 
212
          <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>
 
213
          <td class="mdname1" valign="top" nowrap> <em>content</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>
 
214
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
215
          <td class="md" nowrap></td>
 
216
        </tr>
 
217
      </table>
 
218
    </td>
 
219
  </tr>
 
220
</table>
 
221
<table cellspacing="5" cellpadding="0" border="0">
 
222
  <tr>
 
223
    <td>
 
224
      &nbsp;
 
225
    </td>
 
226
    <td>
 
227
 
 
228
<p>
 
229
Append a new text node. 
 
230
<p>
 
231
<dl compact><dt><b>Parameters:</b></dt><dd>
 
232
  <table border="0" cellspacing="2" cellpadding="0">
 
233
    <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>
 
234
  </table>
 
235
</dl>
 
236
<dl compact><dt><b>Returns:</b></dt><dd>The new text node. </dd></dl>
 
237
    </td>
 
238
  </tr>
 
239
</table>
 
240
<a class="anchor" name="21fcf0bb1ee913fb698d2ab8911dda77"></a><!-- doxytag: member="xmlpp::Element::get_attribute" ref="21fcf0bb1ee913fb698d2ab8911dda77" args="(const Glib::ustring &amp;name, const Glib::ustring &amp;ns_prefix=Glib::ustring()) const " --><p>
 
241
<table class="mdTable" cellpadding="2" cellspacing="0">
 
242
  <tr>
 
243
    <td class="mdRow">
 
244
      <table cellpadding="0" cellspacing="0" border="0">
 
245
        <tr>
 
246
          <td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* xmlpp::Element::get_attribute           </td>
 
247
          <td class="md" valign="top">(&nbsp;</td>
 
248
          <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>
 
249
          <td class="mdname" nowrap> <em>name</em>, </td>
 
250
        </tr>
 
251
        <tr>
 
252
          <td class="md" nowrap align="right"></td>
 
253
          <td class="md"></td>
 
254
          <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>
 
255
          <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>
 
256
        </tr>
 
257
        <tr>
 
258
          <td class="md"></td>
 
259
          <td class="md">)&nbsp;</td>
 
260
          <td class="md" colspan="2"> const</td>
 
261
        </tr>
 
262
      </table>
 
263
    </td>
 
264
  </tr>
 
265
</table>
 
266
<table cellspacing="5" cellpadding="0" border="0">
 
267
  <tr>
 
268
    <td>
 
269
      &nbsp;
 
270
    </td>
 
271
    <td>
 
272
 
 
273
<p>
 
274
    </td>
 
275
  </tr>
 
276
</table>
 
277
<a class="anchor" name="fc9883eee2a4fb0584a60b21b5d2673b"></a><!-- doxytag: member="xmlpp::Element::get_attributes" ref="fc9883eee2a4fb0584a60b21b5d2673b" args="() const " --><p>
 
278
<table class="mdTable" cellpadding="2" cellspacing="0">
 
279
  <tr>
 
280
    <td class="mdRow">
 
281
      <table cellpadding="0" cellspacing="0" border="0">
 
282
        <tr>
 
283
          <td class="md" nowrap valign="top">const <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_1list.html">AttributeList</a> xmlpp::Element::get_attributes           </td>
 
284
          <td class="md" valign="top">(&nbsp;</td>
 
285
          <td class="mdname1" valign="top" nowrap>          </td>
 
286
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
287
          <td class="md" nowrap> const</td>
 
288
        </tr>
 
289
      </table>
 
290
    </td>
 
291
  </tr>
 
292
</table>
 
293
<table cellspacing="5" cellpadding="0" border="0">
 
294
  <tr>
 
295
    <td>
 
296
      &nbsp;
 
297
    </td>
 
298
    <td>
 
299
 
 
300
<p>
 
301
Obtain the list of attributes for this element. 
 
302
<p>
 
303
<dl compact><dt><b>Returns:</b></dt><dd>The list of attributes. </dd></dl>
 
304
    </td>
 
305
  </tr>
 
306
</table>
 
307
<a class="anchor" name="8fbb85e7ecabc5a8b9b39638f94e4fb7"></a><!-- doxytag: member="xmlpp::Element::get_attributes" ref="8fbb85e7ecabc5a8b9b39638f94e4fb7" args="()" --><p>
 
308
<table class="mdTable" cellpadding="2" cellspacing="0">
 
309
  <tr>
 
310
    <td class="mdRow">
 
311
      <table cellpadding="0" cellspacing="0" border="0">
 
312
        <tr>
 
313
          <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_1list.html">AttributeList</a> xmlpp::Element::get_attributes           </td>
 
314
          <td class="md" valign="top">(&nbsp;</td>
 
315
          <td class="mdname1" valign="top" nowrap>          </td>
 
316
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
317
          <td class="md" nowrap></td>
 
318
        </tr>
 
319
      </table>
 
320
    </td>
 
321
  </tr>
 
322
</table>
 
323
<table cellspacing="5" cellpadding="0" border="0">
 
324
  <tr>
 
325
    <td>
 
326
      &nbsp;
 
327
    </td>
 
328
    <td>
 
329
 
 
330
<p>
 
331
Obtain the list of attributes for this element. 
 
332
<p>
 
333
<dl compact><dt><b>Returns:</b></dt><dd>The list of attributes. </dd></dl>
 
334
    </td>
 
335
  </tr>
 
336
</table>
 
337
<a class="anchor" name="0a2326904a79f2e2abb5c91a4107fa6f"></a><!-- doxytag: member="xmlpp::Element::get_child_text" ref="0a2326904a79f2e2abb5c91a4107fa6f" args="() const " --><p>
 
338
<table class="mdTable" cellpadding="2" cellspacing="0">
 
339
  <tr>
 
340
    <td class="mdRow">
 
341
      <table cellpadding="0" cellspacing="0" border="0">
 
342
        <tr>
 
343
          <td class="md" nowrap valign="top">const <a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::get_child_text           </td>
 
344
          <td class="md" valign="top">(&nbsp;</td>
 
345
          <td class="mdname1" valign="top" nowrap>          </td>
 
346
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
347
          <td class="md" nowrap> const</td>
 
348
        </tr>
 
349
      </table>
 
350
    </td>
 
351
  </tr>
 
352
</table>
 
353
<table cellspacing="5" cellpadding="0" border="0">
 
354
  <tr>
 
355
    <td>
 
356
      &nbsp;
 
357
    </td>
 
358
    <td>
 
359
 
 
360
<p>
 
361
Get the first child text content node. 
 
362
<p>
 
363
This is a convenience method, meant as an alternative to iterating over all the child nodes to find the first suitable node then and getting the text directly. <dl compact><dt><b>Returns:</b></dt><dd>The first text node, if any. </dd></dl>
 
364
    </td>
 
365
  </tr>
 
366
</table>
 
367
<a class="anchor" name="71885eacc99a1e7812b47d3d0607423a"></a><!-- doxytag: member="xmlpp::Element::get_child_text" ref="71885eacc99a1e7812b47d3d0607423a" args="()" --><p>
 
368
<table class="mdTable" cellpadding="2" cellspacing="0">
 
369
  <tr>
 
370
    <td class="mdRow">
 
371
      <table cellpadding="0" cellspacing="0" border="0">
 
372
        <tr>
 
373
          <td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::get_child_text           </td>
 
374
          <td class="md" valign="top">(&nbsp;</td>
 
375
          <td class="mdname1" valign="top" nowrap>          </td>
 
376
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
377
          <td class="md" nowrap></td>
 
378
        </tr>
 
379
      </table>
 
380
    </td>
 
381
  </tr>
 
382
</table>
 
383
<table cellspacing="5" cellpadding="0" border="0">
 
384
  <tr>
 
385
    <td>
 
386
      &nbsp;
 
387
    </td>
 
388
    <td>
 
389
 
 
390
<p>
 
391
Get the first child text content node. 
 
392
<p>
 
393
This is a convenience method, meant as an alternative to iterating over all the child nodes to find the first suitable node then and getting the text directly. <dl compact><dt><b>Returns:</b></dt><dd>The first text node, if any. </dd></dl>
 
394
    </td>
 
395
  </tr>
 
396
</table>
 
397
<a class="anchor" name="f4c996b3eed332ed7e4e3096427e624d"></a><!-- doxytag: member="xmlpp::Element::get_namespace_uri_for_prefix" ref="f4c996b3eed332ed7e4e3096427e624d" args="(const Glib::ustring &amp;ns_prefix) const " --><p>
 
398
<table class="mdTable" cellpadding="2" cellspacing="0">
 
399
  <tr>
 
400
    <td class="mdRow">
 
401
      <table cellpadding="0" cellspacing="0" border="0">
 
402
        <tr>
 
403
          <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::Element::get_namespace_uri_for_prefix           </td>
 
404
          <td class="md" valign="top">(&nbsp;</td>
 
405
          <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>
 
406
          <td class="mdname1" valign="top" nowrap> <em>ns_prefix</em>          </td>
 
407
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
408
          <td class="md" nowrap> const<code> [protected]</code></td>
 
409
        </tr>
 
410
      </table>
 
411
    </td>
 
412
  </tr>
 
413
</table>
 
414
<table cellspacing="5" cellpadding="0" border="0">
 
415
  <tr>
 
416
    <td>
 
417
      &nbsp;
 
418
    </td>
 
419
    <td>
 
420
 
 
421
<p>
 
422
    </td>
 
423
  </tr>
 
424
</table>
 
425
<a class="anchor" name="40d1299122bd9921fcb544ca1236aa95"></a><!-- doxytag: member="xmlpp::Element::has_child_text" ref="40d1299122bd9921fcb544ca1236aa95" args="() const " --><p>
 
426
<table class="mdTable" cellpadding="2" cellspacing="0">
 
427
  <tr>
 
428
    <td class="mdRow">
 
429
      <table cellpadding="0" cellspacing="0" border="0">
 
430
        <tr>
 
431
          <td class="md" nowrap valign="top"><a class="el" href="classbool.html">bool</a> xmlpp::Element::has_child_text           </td>
 
432
          <td class="md" valign="top">(&nbsp;</td>
 
433
          <td class="mdname1" valign="top" nowrap>          </td>
 
434
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
435
          <td class="md" nowrap> const</td>
 
436
        </tr>
 
437
      </table>
 
438
    </td>
 
439
  </tr>
 
440
</table>
 
441
<table cellspacing="5" cellpadding="0" border="0">
 
442
  <tr>
 
443
    <td>
 
444
      &nbsp;
 
445
    </td>
 
446
    <td>
 
447
 
 
448
<p>
 
449
Discover whether one of the child nodes is a text node. 
 
450
<p>
 
451
This is a convenience method, meant as an alternative to iterating over all the child nodes and examining them directly. <dl compact><dt><b>Returns:</b></dt><dd>Whether this node has a child text node. </dd></dl>
 
452
    </td>
 
453
  </tr>
 
454
</table>
 
455
<a class="anchor" name="3d5765f07699dc8d4d55c0b0157defad"></a><!-- doxytag: member="xmlpp::Element::remove_attribute" ref="3d5765f07699dc8d4d55c0b0157defad" args="(const Glib::ustring &amp;name, const Glib::ustring &amp;ns_prefix=Glib::ustring())" --><p>
 
456
<table class="mdTable" cellpadding="2" cellspacing="0">
 
457
  <tr>
 
458
    <td class="mdRow">
 
459
      <table cellpadding="0" cellspacing="0" border="0">
 
460
        <tr>
 
461
          <td class="md" nowrap valign="top">void xmlpp::Element::remove_attribute           </td>
 
462
          <td class="md" valign="top">(&nbsp;</td>
 
463
          <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>
 
464
          <td class="mdname" nowrap> <em>name</em>, </td>
 
465
        </tr>
 
466
        <tr>
 
467
          <td class="md" nowrap align="right"></td>
 
468
          <td class="md"></td>
 
469
          <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>
 
470
          <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>
 
471
        </tr>
 
472
        <tr>
 
473
          <td class="md"></td>
 
474
          <td class="md">)&nbsp;</td>
 
475
          <td class="md" colspan="2"></td>
 
476
        </tr>
 
477
      </table>
 
478
    </td>
 
479
  </tr>
 
480
</table>
 
481
<table cellspacing="5" cellpadding="0" border="0">
 
482
  <tr>
 
483
    <td>
 
484
      &nbsp;
 
485
    </td>
 
486
    <td>
 
487
 
 
488
<p>
 
489
Remove the attribute with this name, and optionally with this namespace. 
 
490
<p>
 
491
<dl compact><dt><b>Parameters:</b></dt><dd>
 
492
  <table border="0" cellspacing="2" cellpadding="0">
 
493
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name of the attribute to be removed </td></tr>
 
494
    <tr><td valign="top"></td><td valign="top"><em>ns_prefix</em>&nbsp;</td><td>Namespace prefix. If specified, the attribute will be removed only if the attribute has this namespace. </td></tr>
 
495
  </table>
 
496
</dl>
 
497
    </td>
 
498
  </tr>
 
499
</table>
 
500
<a class="anchor" name="359b10f76db129fff5776c8405ac8e9a"></a><!-- doxytag: member="xmlpp::Element::set_attribute" ref="359b10f76db129fff5776c8405ac8e9a" args="(const Glib::ustring &amp;name, const Glib::ustring &amp;value, const Glib::ustring &amp;ns_prefix=Glib::ustring())" --><p>
 
501
<table class="mdTable" cellpadding="2" cellspacing="0">
 
502
  <tr>
 
503
    <td class="mdRow">
 
504
      <table cellpadding="0" cellspacing="0" border="0">
 
505
        <tr>
 
506
          <td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* xmlpp::Element::set_attribute           </td>
 
507
          <td class="md" valign="top">(&nbsp;</td>
 
508
          <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>
 
509
          <td class="mdname" nowrap> <em>name</em>, </td>
 
510
        </tr>
 
511
        <tr>
 
512
          <td class="md" nowrap align="right"></td>
 
513
          <td class="md"></td>
 
514
          <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>
 
515
          <td class="mdname" nowrap> <em>value</em>, </td>
 
516
        </tr>
 
517
        <tr>
 
518
          <td class="md" nowrap align="right"></td>
 
519
          <td class="md"></td>
 
520
          <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>
 
521
          <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>
 
522
        </tr>
 
523
        <tr>
 
524
          <td class="md"></td>
 
525
          <td class="md">)&nbsp;</td>
 
526
          <td class="md" colspan="2"></td>
 
527
        </tr>
 
528
      </table>
 
529
    </td>
 
530
  </tr>
 
531
</table>
 
532
<table cellspacing="5" cellpadding="0" border="0">
 
533
  <tr>
 
534
    <td>
 
535
      &nbsp;
 
536
    </td>
 
537
    <td>
 
538
 
 
539
<p>
 
540
Set the value of the attribute with this name, and optionally with this namespace. 
 
541
<p>
 
542
A matching attribute will be added if no matching attribute already exists. For finer control, you might want to use <a class="el" href="classxmlpp_1_1Element.html#21fcf0bb1ee913fb698d2ab8911dda77">get_attribute()</a> and use the methods of the <a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a> class. <dl compact><dt><b>Parameters:</b></dt><dd>
 
543
  <table border="0" cellspacing="2" cellpadding="0">
 
544
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name of the attribute whose value will change. </td></tr>
 
545
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The new value for the attribute </td></tr>
 
546
    <tr><td valign="top"></td><td valign="top"><em>ns_prefix</em>&nbsp;</td><td>Namespace prefix. If the prefix has not been declared then this method will throw an exception. </td></tr>
 
547
  </table>
 
548
</dl>
 
549
<dl compact><dt><b>Returns:</b></dt><dd>The attribute that was changed, or 0 is no suitable <a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a> was found. </dd></dl>
 
550
    </td>
 
551
  </tr>
 
552
</table>
 
553
<a class="anchor" name="9be4234049fe13f2941d9c7a5dbc37e2"></a><!-- doxytag: member="xmlpp::Element::set_child_text" ref="9be4234049fe13f2941d9c7a5dbc37e2" args="(const Glib::ustring &amp;content)" --><p>
 
554
<table class="mdTable" cellpadding="2" cellspacing="0">
 
555
  <tr>
 
556
    <td class="mdRow">
 
557
      <table cellpadding="0" cellspacing="0" border="0">
 
558
        <tr>
 
559
          <td class="md" nowrap valign="top">void xmlpp::Element::set_child_text           </td>
 
560
          <td class="md" valign="top">(&nbsp;</td>
 
561
          <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>
 
562
          <td class="mdname1" valign="top" nowrap> <em>content</em>          </td>
 
563
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
564
          <td class="md" nowrap></td>
 
565
        </tr>
 
566
      </table>
 
567
    </td>
 
568
  </tr>
 
569
</table>
 
570
<table cellspacing="5" cellpadding="0" border="0">
 
571
  <tr>
 
572
    <td>
 
573
      &nbsp;
 
574
    </td>
 
575
    <td>
 
576
 
 
577
<p>
 
578
Set the text of the first text node, adding one if necessary. 
 
579
<p>
 
580
This is a convenience method, meant as an alternative to iterating over all the child nodes to find the first suitable node then and setting the text directly. <dl compact><dt><b>Parameters:</b></dt><dd>
 
581
  <table border="0" cellspacing="2" cellpadding="0">
 
582
    <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>
 
583
  </table>
 
584
</dl>
 
585
    </td>
 
586
  </tr>
 
587
</table>
 
588
<a class="anchor" name="801e28a85e4c45d145d056c5ff7186f3"></a><!-- doxytag: member="xmlpp::Element::set_namespace_declaration" ref="801e28a85e4c45d145d056c5ff7186f3" args="(const Glib::ustring &amp;ns_uri, const Glib::ustring &amp;ns_prefix=Glib::ustring())" --><p>
 
589
<table class="mdTable" cellpadding="2" cellspacing="0">
 
590
  <tr>
 
591
    <td class="mdRow">
 
592
      <table cellpadding="0" cellspacing="0" border="0">
 
593
        <tr>
 
594
          <td class="md" nowrap valign="top">void xmlpp::Element::set_namespace_declaration           </td>
 
595
          <td class="md" valign="top">(&nbsp;</td>
 
596
          <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>
 
597
          <td class="mdname" nowrap> <em>ns_uri</em>, </td>
 
598
        </tr>
 
599
        <tr>
 
600
          <td class="md" nowrap align="right"></td>
 
601
          <td class="md"></td>
 
602
          <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>
 
603
          <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>
 
604
        </tr>
 
605
        <tr>
 
606
          <td class="md"></td>
 
607
          <td class="md">)&nbsp;</td>
 
608
          <td class="md" colspan="2"></td>
 
609
        </tr>
 
610
      </table>
 
611
    </td>
 
612
  </tr>
 
613
</table>
 
614
<table cellspacing="5" cellpadding="0" border="0">
 
615
  <tr>
 
616
    <td>
 
617
      &nbsp;
 
618
    </td>
 
619
    <td>
 
620
 
 
621
<p>
 
622
This adds a namespace declaration to this node which will apply to this node and all children. 
 
623
<p>
 
624
<dl compact><dt><b>Parameters:</b></dt><dd>
 
625
  <table border="0" cellspacing="2" cellpadding="0">
 
626
    <tr><td valign="top"></td><td valign="top"><em>ns_uri</em>&nbsp;</td><td>The namespace to associate with the prefix, or to use as the default namespace if no prefix is specified. </td></tr>
 
627
    <tr><td valign="top"></td><td valign="top"><em>ns_prefix</em>&nbsp;</td><td>The namespace prefix. If no prefix is specified then the namespace URI will be the default namespace. </td></tr>
 
628
  </table>
 
629
</dl>
 
630
    </td>
 
631
  </tr>
 
632
</table>
 
633
<hr>The documentation for this class was generated from the following file:<ul>
 
634
<li><a class="el" href="element_8h.html">element.h</a></ul>
 
635
<hr size="1"><address style="align: right;"><small>Generated on Fri Nov 17 09:08:24 2006 for libxml++ by&nbsp;
 
636
<a href="http://www.doxygen.org/index.html">
 
637
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
 
638
</body>
 
639
</html>