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">
7
<!-- Generated by Doxygen 1.5.1 -->
10
<li><a href="index.html"><span>Main 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
<li><a href="pages.html"><span>Related Pages</span></a></li>
19
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
20
<li><a href="annotated.html"><span>Class List</span></a></li>
21
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
22
<li><a href="functions.html"><span>Class Members</span></a></li>
25
<a class="el" href="namespacexmlpp.html">xmlpp</a>::<a class="el" href="classxmlpp_1_1Element.html">Element</a></div>
26
<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.
27
<a href="#_details">More...</a>
29
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>
30
<map name="xmlpp_1_1Element__inherit__map">
31
<area href="classxmlpp_1_1Node.html" shape="rect" coords="32,84,136,111" alt="">
32
<area href="classxmlpp_1_1NonCopyable.html" shape="rect" coords="5,7,163,33" alt="">
34
<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">
36
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
37
<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#7c54c83af3dfeddf2a70dba5ca6cc1d1">AttributeList</a></td></tr>
39
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#ddce07f26b8ca52beb583d942375a756">Element</a> (_xmlNode *node)</td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#6633bfbb6b3b6520ab9ac8fa4991b066">~Element</a> ()</td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </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> &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>
46
<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="#801e28a85e4c45d145d056c5ff7186f3"></a><br></td></tr>
47
<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#8fbb85e7ecabc5a8b9b39638f94e4fb7">get_attributes</a> ()</td></tr>
49
<tr><td class="mdescLeft"> </td><td class="mdescRight">Obtain the list of attributes for this element. <a href="#8fbb85e7ecabc5a8b9b39638f94e4fb7"></a><br></td></tr>
50
<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#48b267b719a1bbd4e213da05955a810e">get_attributes</a> () const</td></tr>
52
<tr><td class="mdescLeft"> </td><td class="mdescRight">Obtain the list of attributes for this element. <a href="#48b267b719a1bbd4e213da05955a810e"></a><br></td></tr>
53
<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#1bb57d120324e5cd239c60fc6071523f">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>
55
<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#7983a2891f7a82b72cf0c54431c8d86c">get_attribute_value</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>
57
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the value of the attribute with this name, and optionally with this namespace. <a href="#7983a2891f7a82b72cf0c54431c8d86c"></a><br></td></tr>
58
<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#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> &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>
60
<tr><td class="mdescLeft"> </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>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </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> &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>
63
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove the attribute with this name, and optionally with this namespace. <a href="#3d5765f07699dc8d4d55c0b0157defad"></a><br></td></tr>
64
<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#71885eacc99a1e7812b47d3d0607423a">get_child_text</a> ()</td></tr>
66
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first child text content node. <a href="#71885eacc99a1e7812b47d3d0607423a"></a><br></td></tr>
67
<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#429850bb28e536f790a10c0143448e3e">get_child_text</a> () const</td></tr>
69
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first child text content node. <a href="#429850bb28e536f790a10c0143448e3e"></a><br></td></tr>
70
<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#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> &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>
72
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a new text node. <a href="#15cd56e871aaf9625b7f4fbedb97c764"></a><br></td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </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> &content)</td></tr>
75
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the text of the first text node, adding one if necessary. <a href="#9be4234049fe13f2941d9c7a5dbc37e2"></a><br></td></tr>
76
<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#af163cefbd08210bdb3c00598ef4164f">has_child_text</a> () const</td></tr>
78
<tr><td class="mdescLeft"> </td><td class="mdescRight">Discover whether one of the child nodes is a text node. <a href="#af163cefbd08210bdb3c00598ef4164f"></a><br></td></tr>
79
<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#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> &content)</td></tr>
81
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a new comment node. <a href="#f69479710a4ab4cd8e89703a20dd360e"></a><br></td></tr>
82
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
83
<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#3453ab385371f11c42ec459cbc2eb821">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>
86
<hr><a name="_details"></a><h2>Detailed Description</h2>
87
<a class="el" href="classxmlpp_1_1Element.html">Element</a> nodes have attributes as well as child nodes.
89
This will be instantiated by the parser.
91
<hr><h2>Member Typedef Documentation</h2>
92
<a class="anchor" name="7c54c83af3dfeddf2a70dba5ca6cc1d1"></a><!-- doxytag: member="xmlpp::Element::AttributeList" ref="7c54c83af3dfeddf2a70dba5ca6cc1d1" args="" -->
94
<div class="memproto">
95
<table class="memname">
97
<td class="memname">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>
107
<hr><h2>Constructor & Destructor Documentation</h2>
108
<a class="anchor" name="ddce07f26b8ca52beb583d942375a756"></a><!-- doxytag: member="xmlpp::Element::Element" ref="ddce07f26b8ca52beb583d942375a756" args="(_xmlNode *node)" -->
109
<div class="memitem">
110
<div class="memproto">
111
<table class="memname">
113
<td class="memname">xmlpp::Element::Element </td>
115
<td class="paramtype">_xmlNode * </td>
116
<td class="paramname"> <em>node</em> </td>
117
<td> ) </td>
118
<td width="100%"><code> [explicit]</code></td>
128
<a class="anchor" name="6633bfbb6b3b6520ab9ac8fa4991b066"></a><!-- doxytag: member="xmlpp::Element::~Element" ref="6633bfbb6b3b6520ab9ac8fa4991b066" args="()" -->
129
<div class="memitem">
130
<div class="memproto">
131
<table class="memname">
133
<td class="memname">virtual xmlpp::Element::~Element </td>
135
<td class="paramname"> </td>
136
<td> ) </td>
137
<td width="100%"><code> [virtual]</code></td>
147
<hr><h2>Member Function Documentation</h2>
148
<a class="anchor" name="801e28a85e4c45d145d056c5ff7186f3"></a><!-- doxytag: member="xmlpp::Element::set_namespace_declaration" ref="801e28a85e4c45d145d056c5ff7186f3" args="(const Glib::ustring &ns_uri, const Glib::ustring &ns_prefix=Glib::ustring())" -->
149
<div class="memitem">
150
<div class="memproto">
151
<table class="memname">
153
<td class="memname">void xmlpp::Element::set_namespace_declaration </td>
155
<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> & </td>
156
<td class="paramname"> <em>ns_uri</em>, </td>
159
<td class="paramkey"></td>
161
<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> & </td>
162
<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> </td>
167
<td></td><td></td><td width="100%"></td>
174
This adds a namespace declaration to this node which will apply to this node and all children.
176
<dl compact><dt><b>Parameters:</b></dt><dd>
177
<table border="0" cellspacing="2" cellpadding="0">
178
<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>
179
<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>
185
<a class="anchor" name="8fbb85e7ecabc5a8b9b39638f94e4fb7"></a><!-- doxytag: member="xmlpp::Element::get_attributes" ref="8fbb85e7ecabc5a8b9b39638f94e4fb7" args="()" -->
186
<div class="memitem">
187
<div class="memproto">
188
<table class="memname">
190
<td class="memname"><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>
192
<td class="paramname"> </td>
193
<td> ) </td>
194
<td width="100%"></td>
201
Obtain the list of attributes for this element.
203
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The list of attributes. </dd></dl>
207
<a class="anchor" name="48b267b719a1bbd4e213da05955a810e"></a><!-- doxytag: member="xmlpp::Element::get_attributes" ref="48b267b719a1bbd4e213da05955a810e" args="() const" -->
208
<div class="memitem">
209
<div class="memproto">
210
<table class="memname">
212
<td class="memname">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>
214
<td class="paramname"> </td>
215
<td> ) </td>
216
<td width="100%"> const</td>
223
Obtain the list of attributes for this element.
225
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The list of attributes. </dd></dl>
229
<a class="anchor" name="1bb57d120324e5cd239c60fc6071523f"></a><!-- doxytag: member="xmlpp::Element::get_attribute" ref="1bb57d120324e5cd239c60fc6071523f" args="(const Glib::ustring &name, const Glib::ustring &ns_prefix=Glib::ustring()) const" -->
230
<div class="memitem">
231
<div class="memproto">
232
<table class="memname">
234
<td class="memname"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* xmlpp::Element::get_attribute </td>
236
<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> & </td>
237
<td class="paramname"> <em>name</em>, </td>
240
<td class="paramkey"></td>
242
<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> & </td>
243
<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> </td>
248
<td></td><td></td><td width="100%"> const</td>
258
<a class="anchor" name="7983a2891f7a82b72cf0c54431c8d86c"></a><!-- doxytag: member="xmlpp::Element::get_attribute_value" ref="7983a2891f7a82b72cf0c54431c8d86c" args="(const Glib::ustring &name, const Glib::ustring &ns_prefix=Glib::ustring()) const" -->
259
<div class="memitem">
260
<div class="memproto">
261
<table class="memname">
263
<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::Element::get_attribute_value </td>
265
<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> & </td>
266
<td class="paramname"> <em>name</em>, </td>
269
<td class="paramkey"></td>
271
<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> & </td>
272
<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> </td>
277
<td></td><td></td><td width="100%"> const</td>
284
Get the value of the attribute with this name, and optionally with this namespace.
286
For finer control, you might use <a class="el" href="classxmlpp_1_1Element.html#1bb57d120324e5cd239c60fc6071523f">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>
287
<table border="0" cellspacing="2" cellpadding="0">
288
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute whose value will be retrieved. </td></tr>
289
<tr><td valign="top"></td><td valign="top"><em>ns_prefix</em> </td><td>Namespace prefix. </td></tr>
292
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The text value of the attribute, or an empty string if no such attribute was found.</dd></dl>
293
<dl compact><dt><b><a class="el" href="newin2p20s.html#_newin2p20s000001">Since libxml++ 2.20:</a></b></dt><dd></dd></dl>
297
<a class="anchor" name="359b10f76db129fff5776c8405ac8e9a"></a><!-- doxytag: member="xmlpp::Element::set_attribute" ref="359b10f76db129fff5776c8405ac8e9a" args="(const Glib::ustring &name, const Glib::ustring &value, const Glib::ustring &ns_prefix=Glib::ustring())" -->
298
<div class="memitem">
299
<div class="memproto">
300
<table class="memname">
302
<td class="memname"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* xmlpp::Element::set_attribute </td>
304
<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> & </td>
305
<td class="paramname"> <em>name</em>, </td>
308
<td class="paramkey"></td>
310
<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> & </td>
311
<td class="paramname"> <em>value</em>, </td>
314
<td class="paramkey"></td>
316
<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> & </td>
317
<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> </td>
322
<td></td><td></td><td width="100%"></td>
329
Set the value of the attribute with this name, and optionally with this namespace.
331
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#1bb57d120324e5cd239c60fc6071523f">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>
332
<table border="0" cellspacing="2" cellpadding="0">
333
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute whose value will change. </td></tr>
334
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The new value for the attribute </td></tr>
335
<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>
338
<dl class="return" 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>
342
<a class="anchor" name="3d5765f07699dc8d4d55c0b0157defad"></a><!-- doxytag: member="xmlpp::Element::remove_attribute" ref="3d5765f07699dc8d4d55c0b0157defad" args="(const Glib::ustring &name, const Glib::ustring &ns_prefix=Glib::ustring())" -->
343
<div class="memitem">
344
<div class="memproto">
345
<table class="memname">
347
<td class="memname">void xmlpp::Element::remove_attribute </td>
349
<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> & </td>
350
<td class="paramname"> <em>name</em>, </td>
353
<td class="paramkey"></td>
355
<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> & </td>
356
<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> </td>
361
<td></td><td></td><td width="100%"></td>
368
Remove the attribute with this name, and optionally with this namespace.
370
<dl compact><dt><b>Parameters:</b></dt><dd>
371
<table border="0" cellspacing="2" cellpadding="0">
372
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute to be removed </td></tr>
373
<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>
379
<a class="anchor" name="71885eacc99a1e7812b47d3d0607423a"></a><!-- doxytag: member="xmlpp::Element::get_child_text" ref="71885eacc99a1e7812b47d3d0607423a" args="()" -->
380
<div class="memitem">
381
<div class="memproto">
382
<table class="memname">
384
<td class="memname"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::get_child_text </td>
386
<td class="paramname"> </td>
387
<td> ) </td>
388
<td width="100%"></td>
395
Get the first child text content node.
397
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 class="return" compact><dt><b>Returns:</b></dt><dd>The first text node, if any. </dd></dl>
401
<a class="anchor" name="429850bb28e536f790a10c0143448e3e"></a><!-- doxytag: member="xmlpp::Element::get_child_text" ref="429850bb28e536f790a10c0143448e3e" args="() const" -->
402
<div class="memitem">
403
<div class="memproto">
404
<table class="memname">
406
<td class="memname">const <a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::get_child_text </td>
408
<td class="paramname"> </td>
409
<td> ) </td>
410
<td width="100%"> const</td>
417
Get the first child text content node.
419
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 class="return" compact><dt><b>Returns:</b></dt><dd>The first text node, if any. </dd></dl>
423
<a class="anchor" name="15cd56e871aaf9625b7f4fbedb97c764"></a><!-- doxytag: member="xmlpp::Element::add_child_text" ref="15cd56e871aaf9625b7f4fbedb97c764" args="(const Glib::ustring &content=Glib::ustring())" -->
424
<div class="memitem">
425
<div class="memproto">
426
<table class="memname">
428
<td class="memname"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::add_child_text </td>
430
<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> & </td>
431
<td class="paramname"> <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>
432
<td> ) </td>
433
<td width="100%"></td>
440
Append a new text node.
442
<dl compact><dt><b>Parameters:</b></dt><dd>
443
<table border="0" cellspacing="2" cellpadding="0">
444
<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#2e9978caa82eb11cadccd4d5fc4e690a">ContentNode::set_content()</a>. </td></tr>
447
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new text node. </dd></dl>
451
<a class="anchor" name="9be4234049fe13f2941d9c7a5dbc37e2"></a><!-- doxytag: member="xmlpp::Element::set_child_text" ref="9be4234049fe13f2941d9c7a5dbc37e2" args="(const Glib::ustring &content)" -->
452
<div class="memitem">
453
<div class="memproto">
454
<table class="memname">
456
<td class="memname">void xmlpp::Element::set_child_text </td>
458
<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> & </td>
459
<td class="paramname"> <em>content</em> </td>
460
<td> ) </td>
461
<td width="100%"></td>
468
Set the text of the first text node, adding one if necessary.
470
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>
471
<table border="0" cellspacing="2" cellpadding="0">
472
<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#2e9978caa82eb11cadccd4d5fc4e690a">ContentNode::set_content()</a>. </td></tr>
478
<a class="anchor" name="af163cefbd08210bdb3c00598ef4164f"></a><!-- doxytag: member="xmlpp::Element::has_child_text" ref="af163cefbd08210bdb3c00598ef4164f" args="() const" -->
479
<div class="memitem">
480
<div class="memproto">
481
<table class="memname">
483
<td class="memname"><a class="el" href="classbool.html">bool</a> xmlpp::Element::has_child_text </td>
485
<td class="paramname"> </td>
486
<td> ) </td>
487
<td width="100%"> const</td>
494
Discover whether one of the child nodes is a text node.
496
This is a convenience method, meant as an alternative to iterating over all the child nodes and examining them directly. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether this node has a child text node. </dd></dl>
500
<a class="anchor" name="f69479710a4ab4cd8e89703a20dd360e"></a><!-- doxytag: member="xmlpp::Element::add_child_comment" ref="f69479710a4ab4cd8e89703a20dd360e" args="(const Glib::ustring &content)" -->
501
<div class="memitem">
502
<div class="memproto">
503
<table class="memname">
505
<td class="memname"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* xmlpp::Element::add_child_comment </td>
507
<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> & </td>
508
<td class="paramname"> <em>content</em> </td>
509
<td> ) </td>
510
<td width="100%"></td>
517
Append a new comment node.
519
<dl compact><dt><b>Parameters:</b></dt><dd>
520
<table border="0" cellspacing="2" cellpadding="0">
521
<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#2e9978caa82eb11cadccd4d5fc4e690a">ContentNode::set_content()</a>. </td></tr>
524
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new comment node. </dd></dl>
528
<a class="anchor" name="3453ab385371f11c42ec459cbc2eb821"></a><!-- doxytag: member="xmlpp::Element::get_namespace_uri_for_prefix" ref="3453ab385371f11c42ec459cbc2eb821" args="(const Glib::ustring &ns_prefix) const" -->
529
<div class="memitem">
530
<div class="memproto">
531
<table class="memname">
533
<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::Element::get_namespace_uri_for_prefix </td>
535
<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> & </td>
536
<td class="paramname"> <em>ns_prefix</em> </td>
537
<td> ) </td>
538
<td width="100%"> const<code> [protected]</code></td>
548
<hr>The documentation for this class was generated from the following file:<ul>
549
<li><a class="el" href="element_8h.html">element.h</a></ul>
550
<hr size="1"><address style="align: right;"><small>Generated on Tue Sep 18 10:36:19 2007 for libxml++ by
551
<a href="http://www.doxygen.org/index.html">
552
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>