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">
6
<!-- Generated by Doxygen 1.4.0 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
9
<a class="el" href="namespacexmlpp.html">xmlpp</a>::<a class="el" href="classxmlpp_1_1Element.html">Element</a></div>
10
<h1>xmlpp::Element Class Reference</h1><a class="el" href="classxmlpp_1_1Element.html">Element</a> nodes have attributes as well as child nodes.
11
<a href="#_details">More...</a>
13
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>
14
<map name="xmlpp_1_1Element__inherit__map">
15
<area href="classxmlpp_1_1Node.html" shape="rect" coords="31,86,119,105" alt="">
16
<area href="classxmlpp_1_1NonCopyable.html" shape="rect" coords="7,17,143,36" alt="">
18
<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">
20
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
21
<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>< <a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#w0">AttributeList</a></td></tr>
23
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
24
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a0">Element</a> (_xmlNode *node)</td></tr>
26
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a1">~Element</a> ()</td></tr>
28
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a2">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> &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> &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>
30
<tr><td class="mdescLeft"> </td><td class="mdescRight">This adds a namespace declaration to this node which will apply to this node and all children. <a href="#a2"></a><br></td></tr>
31
<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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a3">get_attributes</a> ()</td></tr>
33
<tr><td class="mdescLeft"> </td><td class="mdescRight">Obtain the list of attributes for this element. <a href="#a3"></a><br></td></tr>
34
<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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a4">get_attributes</a> () const </td></tr>
36
<tr><td class="mdescLeft"> </td><td class="mdescRight">Obtain the list of attributes for this element. <a href="#a4"></a><br></td></tr>
37
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a5">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> &name, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &ns_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>
39
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a6">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> &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> &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> &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>
41
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the attribute with this name, and optionally with this namespace. <a href="#a6"></a><br></td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a7">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> &name, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &ns_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
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove the attribute with this name, and optionally with this namespace. <a href="#a7"></a><br></td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a8">get_child_text</a> ()</td></tr>
47
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first child text content node. <a href="#a8"></a><br></td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a9">get_child_text</a> () const </td></tr>
50
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first child text content node. <a href="#a9"></a><br></td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a10">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> &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>
53
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a new text node. <a href="#a10"></a><br></td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a11">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> &content)</td></tr>
56
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the text of the first text node, adding one if necessary. <a href="#a11"></a><br></td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbool.html">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a12">has_child_text</a> () const </td></tr>
59
<tr><td class="mdescLeft"> </td><td class="mdescRight">Discover whether one of the child nodes is a text node. <a href="#a12"></a><br></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a13">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> &content)</td></tr>
62
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a new comment node. <a href="#a13"></a><br></td></tr>
63
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#b0">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> &ns_prefix) const </td></tr>
67
<hr><a name="_details"></a><h2>Detailed Description</h2>
68
<a class="el" href="classxmlpp_1_1Element.html">Element</a> nodes have attributes as well as child nodes.
70
This will be instantiated by the parser.
72
<hr><h2>Member Typedef Documentation</h2>
73
<a class="anchor" name="w0" doxytag="xmlpp::Element::AttributeList"></a><p>
74
<table class="mdTable" cellpadding="2" cellspacing="0">
77
<table cellpadding="0" cellspacing="0" border="0">
79
<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><<a class="el" href="classxmlpp_1_1Attribute.html">Attribute</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_1list.html">xmlpp::Element::AttributeList</a> </td>
85
<table cellspacing="5" cellpadding="0" border="0">
96
<hr><h2>Constructor & Destructor Documentation</h2>
97
<a class="anchor" name="a0" doxytag="xmlpp::Element::Element"></a><p>
98
<table class="mdTable" cellpadding="2" cellspacing="0">
101
<table cellpadding="0" cellspacing="0" border="0">
103
<td class="md" nowrap valign="top">xmlpp::Element::Element </td>
104
<td class="md" valign="top">( </td>
105
<td class="md" nowrap valign="top">_xmlNode * </td>
106
<td class="mdname1" valign="top" nowrap> <em>node</em> </td>
107
<td class="md" valign="top"> ) </td>
108
<td class="md" nowrap><code> [explicit]</code></td>
114
<table cellspacing="5" cellpadding="0" border="0">
125
<a class="anchor" name="a1" doxytag="xmlpp::Element::~Element"></a><p>
126
<table class="mdTable" cellpadding="2" cellspacing="0">
129
<table cellpadding="0" cellspacing="0" border="0">
131
<td class="md" nowrap valign="top">virtual xmlpp::Element::~<a class="el" href="classxmlpp_1_1Element.html">Element</a> </td>
132
<td class="md" valign="top">( </td>
133
<td class="mdname1" valign="top" nowrap> </td>
134
<td class="md" valign="top"> ) </td>
135
<td class="md" nowrap><code> [virtual]</code></td>
141
<table cellspacing="5" cellpadding="0" border="0">
152
<hr><h2>Member Function Documentation</h2>
153
<a class="anchor" name="a13" doxytag="xmlpp::Element::add_child_comment"></a><p>
154
<table class="mdTable" cellpadding="2" cellspacing="0">
157
<table cellpadding="0" cellspacing="0" border="0">
159
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* xmlpp::Element::add_child_comment </td>
160
<td class="md" valign="top">( </td>
161
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
162
<td class="mdname1" valign="top" nowrap> <em>content</em> </td>
163
<td class="md" valign="top"> ) </td>
164
<td class="md" nowrap></td>
170
<table cellspacing="5" cellpadding="0" border="0">
178
Append a new comment node.
180
<dl compact><dt><b>Parameters:</b></dt><dd>
181
<table border="0" cellspacing="2" cellpadding="0">
182
<tr><td valign="top"></td><td valign="top"><em>content</em> </td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a3">ContentNode::set_content()</a>. </td></tr>
185
<dl compact><dt><b>Returns:</b></dt><dd>The new comment node. </dd></dl>
189
<a class="anchor" name="a10" doxytag="xmlpp::Element::add_child_text"></a><p>
190
<table class="mdTable" cellpadding="2" cellspacing="0">
193
<table cellpadding="0" cellspacing="0" border="0">
195
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::add_child_text </td>
196
<td class="md" valign="top">( </td>
197
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
198
<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>
199
<td class="md" valign="top"> ) </td>
200
<td class="md" nowrap></td>
206
<table cellspacing="5" cellpadding="0" border="0">
214
Append a new text node.
216
<dl compact><dt><b>Parameters:</b></dt><dd>
217
<table border="0" cellspacing="2" cellpadding="0">
218
<tr><td valign="top"></td><td valign="top"><em>content</em> </td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a3">ContentNode::set_content()</a>. </td></tr>
221
<dl compact><dt><b>Returns:</b></dt><dd>The new text node. </dd></dl>
225
<a class="anchor" name="a5" doxytag="xmlpp::Element::get_attribute"></a><p>
226
<table class="mdTable" cellpadding="2" cellspacing="0">
229
<table cellpadding="0" cellspacing="0" border="0">
231
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* xmlpp::Element::get_attribute </td>
232
<td class="md" valign="top">( </td>
233
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
234
<td class="mdname" nowrap> <em>name</em>, </td>
237
<td class="md" nowrap align="right"></td>
239
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
240
<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>
244
<td class="md">) </td>
245
<td class="md" colspan="2"> const</td>
251
<table cellspacing="5" cellpadding="0" border="0">
262
<a class="anchor" name="a4" doxytag="xmlpp::Element::get_attributes"></a><p>
263
<table class="mdTable" cellpadding="2" cellspacing="0">
266
<table cellpadding="0" cellspacing="0" border="0">
268
<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>
269
<td class="md" valign="top">( </td>
270
<td class="mdname1" valign="top" nowrap> </td>
271
<td class="md" valign="top"> ) </td>
272
<td class="md" nowrap> const</td>
278
<table cellspacing="5" cellpadding="0" border="0">
286
Obtain the list of attributes for this element.
288
<dl compact><dt><b>Returns:</b></dt><dd>The list of attributes. </dd></dl>
292
<a class="anchor" name="a3" doxytag="xmlpp::Element::get_attributes"></a><p>
293
<table class="mdTable" cellpadding="2" cellspacing="0">
296
<table cellpadding="0" cellspacing="0" border="0">
298
<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>
299
<td class="md" valign="top">( </td>
300
<td class="mdname1" valign="top" nowrap> </td>
301
<td class="md" valign="top"> ) </td>
302
<td class="md" nowrap></td>
308
<table cellspacing="5" cellpadding="0" border="0">
316
Obtain the list of attributes for this element.
318
<dl compact><dt><b>Returns:</b></dt><dd>The list of attributes. </dd></dl>
322
<a class="anchor" name="a9" doxytag="xmlpp::Element::get_child_text"></a><p>
323
<table class="mdTable" cellpadding="2" cellspacing="0">
326
<table cellpadding="0" cellspacing="0" border="0">
328
<td class="md" nowrap valign="top">const <a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::get_child_text </td>
329
<td class="md" valign="top">( </td>
330
<td class="mdname1" valign="top" nowrap> </td>
331
<td class="md" valign="top"> ) </td>
332
<td class="md" nowrap> const</td>
338
<table cellspacing="5" cellpadding="0" border="0">
346
Get the first child text content node.
348
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>
352
<a class="anchor" name="a8" doxytag="xmlpp::Element::get_child_text"></a><p>
353
<table class="mdTable" cellpadding="2" cellspacing="0">
356
<table cellpadding="0" cellspacing="0" border="0">
358
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::get_child_text </td>
359
<td class="md" valign="top">( </td>
360
<td class="mdname1" valign="top" nowrap> </td>
361
<td class="md" valign="top"> ) </td>
362
<td class="md" nowrap></td>
368
<table cellspacing="5" cellpadding="0" border="0">
376
Get the first child text content node.
378
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>
382
<a class="anchor" name="b0" doxytag="xmlpp::Element::get_namespace_uri_for_prefix"></a><p>
383
<table class="mdTable" cellpadding="2" cellspacing="0">
386
<table cellpadding="0" cellspacing="0" border="0">
388
<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>
389
<td class="md" valign="top">( </td>
390
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
391
<td class="mdname1" valign="top" nowrap> <em>ns_prefix</em> </td>
392
<td class="md" valign="top"> ) </td>
393
<td class="md" nowrap> const<code> [protected]</code></td>
399
<table cellspacing="5" cellpadding="0" border="0">
410
<a class="anchor" name="a12" doxytag="xmlpp::Element::has_child_text"></a><p>
411
<table class="mdTable" cellpadding="2" cellspacing="0">
414
<table cellpadding="0" cellspacing="0" border="0">
416
<td class="md" nowrap valign="top"><a class="el" href="classbool.html">bool</a> xmlpp::Element::has_child_text </td>
417
<td class="md" valign="top">( </td>
418
<td class="mdname1" valign="top" nowrap> </td>
419
<td class="md" valign="top"> ) </td>
420
<td class="md" nowrap> const</td>
426
<table cellspacing="5" cellpadding="0" border="0">
434
Discover whether one of the child nodes is a text node.
436
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>
440
<a class="anchor" name="a7" doxytag="xmlpp::Element::remove_attribute"></a><p>
441
<table class="mdTable" cellpadding="2" cellspacing="0">
444
<table cellpadding="0" cellspacing="0" border="0">
446
<td class="md" nowrap valign="top">void xmlpp::Element::remove_attribute </td>
447
<td class="md" valign="top">( </td>
448
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
449
<td class="mdname" nowrap> <em>name</em>, </td>
452
<td class="md" nowrap align="right"></td>
454
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
455
<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>
459
<td class="md">) </td>
460
<td class="md" colspan="2"></td>
466
<table cellspacing="5" cellpadding="0" border="0">
474
Remove the attribute with this name, and optionally with this namespace.
476
<dl compact><dt><b>Parameters:</b></dt><dd>
477
<table border="0" cellspacing="2" cellpadding="0">
478
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute to be removed </td></tr>
479
<tr><td valign="top"></td><td valign="top"><em>ns_prefix</em> </td><td>Namespace prefix. If specified, the attribute will be removed only if the attribute has this namespace. </td></tr>
485
<a class="anchor" name="a6" doxytag="xmlpp::Element::set_attribute"></a><p>
486
<table class="mdTable" cellpadding="2" cellspacing="0">
489
<table cellpadding="0" cellspacing="0" border="0">
491
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* xmlpp::Element::set_attribute </td>
492
<td class="md" valign="top">( </td>
493
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
494
<td class="mdname" nowrap> <em>name</em>, </td>
497
<td class="md" nowrap align="right"></td>
499
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
500
<td class="mdname" nowrap> <em>value</em>, </td>
503
<td class="md" nowrap align="right"></td>
505
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
506
<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>
510
<td class="md">) </td>
511
<td class="md" colspan="2"></td>
517
<table cellspacing="5" cellpadding="0" border="0">
525
Set the value of the attribute with this name, and optionally with this namespace.
527
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#a5">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>
528
<table border="0" cellspacing="2" cellpadding="0">
529
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute whose value will change. </td></tr>
530
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The new value for the attribute </td></tr>
531
<tr><td valign="top"></td><td valign="top"><em>ns_prefix</em> </td><td>Namespace prefix. If the prefix has not been declared then this method will throw an exception. </td></tr>
534
<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>
538
<a class="anchor" name="a11" doxytag="xmlpp::Element::set_child_text"></a><p>
539
<table class="mdTable" cellpadding="2" cellspacing="0">
542
<table cellpadding="0" cellspacing="0" border="0">
544
<td class="md" nowrap valign="top">void xmlpp::Element::set_child_text </td>
545
<td class="md" valign="top">( </td>
546
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
547
<td class="mdname1" valign="top" nowrap> <em>content</em> </td>
548
<td class="md" valign="top"> ) </td>
549
<td class="md" nowrap></td>
555
<table cellspacing="5" cellpadding="0" border="0">
563
Set the text of the first text node, adding one if necessary.
565
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>
566
<table border="0" cellspacing="2" cellpadding="0">
567
<tr><td valign="top"></td><td valign="top"><em>content</em> </td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a3">ContentNode::set_content()</a>. </td></tr>
573
<a class="anchor" name="a2" doxytag="xmlpp::Element::set_namespace_declaration"></a><p>
574
<table class="mdTable" cellpadding="2" cellspacing="0">
577
<table cellpadding="0" cellspacing="0" border="0">
579
<td class="md" nowrap valign="top">void xmlpp::Element::set_namespace_declaration </td>
580
<td class="md" valign="top">( </td>
581
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
582
<td class="mdname" nowrap> <em>ns_uri</em>, </td>
585
<td class="md" nowrap align="right"></td>
587
<td class="md" nowrap>const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
588
<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>
592
<td class="md">) </td>
593
<td class="md" colspan="2"></td>
599
<table cellspacing="5" cellpadding="0" border="0">
607
This adds a namespace declaration to this node which will apply to this node and all children.
609
<dl compact><dt><b>Parameters:</b></dt><dd>
610
<table border="0" cellspacing="2" cellpadding="0">
611
<tr><td valign="top"></td><td valign="top"><em>ns_uri</em> </td><td>The namespace to associate with the prefix, or to use as the default namespace if no prefix is specified. </td></tr>
612
<tr><td valign="top"></td><td valign="top"><em>ns_prefix</em> </td><td>The namespace prefix. If no prefix is specified then the namespace URI will be the default namespace. </td></tr>
618
<hr>The documentation for this class was generated from the following file:<ul>
619
<li><a class="el" href="element_8h.html">element.h</a></ul>
620
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 8 12:05:38 2005 for libxml++ by
621
<a href="http://www.doxygen.org/index.html">
622
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.0 </small></address>