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.4.6 -->
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>
18
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
19
<li><a href="annotated.html"><span>Class List</span></a></li>
20
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
21
<li><a href="functions.html"><span>Class Members</span></a></li>
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>
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="">
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">
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>< <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>
38
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
39
<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>
41
<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>
43
<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>
45
<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>
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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#8fbb85e7ecabc5a8b9b39638f94e4fb7">get_attributes</a> ()</td></tr>
48
<tr><td class="mdescLeft"> </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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#fc9883eee2a4fb0584a60b21b5d2673b">get_attributes</a> () const </td></tr>
51
<tr><td class="mdescLeft"> </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> * </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> &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>
54
<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>
56
<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>
57
<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>
59
<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>
60
<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>
62
<tr><td class="mdescLeft"> </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> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#0a2326904a79f2e2abb5c91a4107fa6f">get_child_text</a> () const </td></tr>
65
<tr><td class="mdescLeft"> </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> * </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>
68
<tr><td class="mdescLeft"> </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 </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>
71
<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>
72
<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#40d1299122bd9921fcb544ca1236aa95">has_child_text</a> () const </td></tr>
74
<tr><td class="mdescLeft"> </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> * </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>
77
<tr><td class="mdescLeft"> </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> </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> &ns_prefix) const </td></tr>
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.
85
This will be instantiated by the parser.
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">
92
<table cellpadding="0" cellspacing="0" border="0">
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><<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>
100
<table cellspacing="5" cellpadding="0" border="0">
111
<hr><h2>Constructor & 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">
116
<table cellpadding="0" cellspacing="0" border="0">
118
<td class="md" nowrap valign="top">xmlpp::Element::Element </td>
119
<td class="md" valign="top">( </td>
120
<td class="md" nowrap valign="top">_xmlNode * </td>
121
<td class="mdname1" valign="top" nowrap> <em>node</em> </td>
122
<td class="md" valign="top"> ) </td>
123
<td class="md" nowrap><code> [explicit]</code></td>
129
<table cellspacing="5" cellpadding="0" border="0">
140
<a class="anchor" name="6633bfbb6b3b6520ab9ac8fa4991b066"></a><!-- doxytag: member="xmlpp::Element::~Element" ref="6633bfbb6b3b6520ab9ac8fa4991b066" args="()" --><p>
141
<table class="mdTable" cellpadding="2" cellspacing="0">
144
<table cellpadding="0" cellspacing="0" border="0">
146
<td class="md" nowrap valign="top">virtual xmlpp::Element::~Element </td>
147
<td class="md" valign="top">( </td>
148
<td class="mdname1" valign="top" nowrap> </td>
149
<td class="md" valign="top"> ) </td>
150
<td class="md" nowrap><code> [virtual]</code></td>
156
<table cellspacing="5" cellpadding="0" border="0">
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 &content)" --><p>
169
<table class="mdTable" cellpadding="2" cellspacing="0">
172
<table cellpadding="0" cellspacing="0" border="0">
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">( </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> & </td>
177
<td class="mdname1" valign="top" nowrap> <em>content</em> </td>
178
<td class="md" valign="top"> ) </td>
179
<td class="md" nowrap></td>
185
<table cellspacing="5" cellpadding="0" border="0">
193
Append a new comment node.
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> </td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#2e9978caa82eb11cadccd4d5fc4e690a">ContentNode::set_content()</a>. </td></tr>
200
<dl compact><dt><b>Returns:</b></dt><dd>The new comment node. </dd></dl>
204
<a class="anchor" name="15cd56e871aaf9625b7f4fbedb97c764"></a><!-- doxytag: member="xmlpp::Element::add_child_text" ref="15cd56e871aaf9625b7f4fbedb97c764" args="(const Glib::ustring &content=Glib::ustring())" --><p>
205
<table class="mdTable" cellpadding="2" cellspacing="0">
208
<table cellpadding="0" cellspacing="0" border="0">
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">( </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> & </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"> ) </td>
215
<td class="md" nowrap></td>
221
<table cellspacing="5" cellpadding="0" border="0">
229
Append a new text node.
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> </td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#2e9978caa82eb11cadccd4d5fc4e690a">ContentNode::set_content()</a>. </td></tr>
236
<dl compact><dt><b>Returns:</b></dt><dd>The new text node. </dd></dl>
240
<a class="anchor" name="21fcf0bb1ee913fb698d2ab8911dda77"></a><!-- doxytag: member="xmlpp::Element::get_attribute" ref="21fcf0bb1ee913fb698d2ab8911dda77" args="(const Glib::ustring &name, const Glib::ustring &ns_prefix=Glib::ustring()) const " --><p>
241
<table class="mdTable" cellpadding="2" cellspacing="0">
244
<table cellpadding="0" cellspacing="0" border="0">
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">( </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> & </td>
249
<td class="mdname" nowrap> <em>name</em>, </td>
252
<td class="md" nowrap align="right"></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> & </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>
259
<td class="md">) </td>
260
<td class="md" colspan="2"> const</td>
266
<table cellspacing="5" cellpadding="0" border="0">
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">
281
<table cellpadding="0" cellspacing="0" border="0">
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">( </td>
285
<td class="mdname1" valign="top" nowrap> </td>
286
<td class="md" valign="top"> ) </td>
287
<td class="md" nowrap> const</td>
293
<table cellspacing="5" cellpadding="0" border="0">
301
Obtain the list of attributes for this element.
303
<dl compact><dt><b>Returns:</b></dt><dd>The list of attributes. </dd></dl>
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">
311
<table cellpadding="0" cellspacing="0" border="0">
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">( </td>
315
<td class="mdname1" valign="top" nowrap> </td>
316
<td class="md" valign="top"> ) </td>
317
<td class="md" nowrap></td>
323
<table cellspacing="5" cellpadding="0" border="0">
331
Obtain the list of attributes for this element.
333
<dl compact><dt><b>Returns:</b></dt><dd>The list of attributes. </dd></dl>
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">
341
<table cellpadding="0" cellspacing="0" border="0">
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">( </td>
345
<td class="mdname1" valign="top" nowrap> </td>
346
<td class="md" valign="top"> ) </td>
347
<td class="md" nowrap> const</td>
353
<table cellspacing="5" cellpadding="0" border="0">
361
Get the first child text content node.
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>
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">
371
<table cellpadding="0" cellspacing="0" border="0">
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">( </td>
375
<td class="mdname1" valign="top" nowrap> </td>
376
<td class="md" valign="top"> ) </td>
377
<td class="md" nowrap></td>
383
<table cellspacing="5" cellpadding="0" border="0">
391
Get the first child text content node.
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>
397
<a class="anchor" name="f4c996b3eed332ed7e4e3096427e624d"></a><!-- doxytag: member="xmlpp::Element::get_namespace_uri_for_prefix" ref="f4c996b3eed332ed7e4e3096427e624d" args="(const Glib::ustring &ns_prefix) const " --><p>
398
<table class="mdTable" cellpadding="2" cellspacing="0">
401
<table cellpadding="0" cellspacing="0" border="0">
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">( </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> & </td>
406
<td class="mdname1" valign="top" nowrap> <em>ns_prefix</em> </td>
407
<td class="md" valign="top"> ) </td>
408
<td class="md" nowrap> const<code> [protected]</code></td>
414
<table cellspacing="5" cellpadding="0" border="0">
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">
429
<table cellpadding="0" cellspacing="0" border="0">
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">( </td>
433
<td class="mdname1" valign="top" nowrap> </td>
434
<td class="md" valign="top"> ) </td>
435
<td class="md" nowrap> const</td>
441
<table cellspacing="5" cellpadding="0" border="0">
449
Discover whether one of the child nodes is a text node.
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>
455
<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())" --><p>
456
<table class="mdTable" cellpadding="2" cellspacing="0">
459
<table cellpadding="0" cellspacing="0" border="0">
461
<td class="md" nowrap valign="top">void xmlpp::Element::remove_attribute </td>
462
<td class="md" valign="top">( </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> & </td>
464
<td class="mdname" nowrap> <em>name</em>, </td>
467
<td class="md" nowrap align="right"></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> & </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>
474
<td class="md">) </td>
475
<td class="md" colspan="2"></td>
481
<table cellspacing="5" cellpadding="0" border="0">
489
Remove the attribute with this name, and optionally with this namespace.
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> </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> </td><td>Namespace prefix. If specified, the attribute will be removed only if the attribute has this namespace. </td></tr>
500
<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())" --><p>
501
<table class="mdTable" cellpadding="2" cellspacing="0">
504
<table cellpadding="0" cellspacing="0" border="0">
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">( </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> & </td>
509
<td class="mdname" nowrap> <em>name</em>, </td>
512
<td class="md" nowrap align="right"></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> & </td>
515
<td class="mdname" nowrap> <em>value</em>, </td>
518
<td class="md" nowrap align="right"></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> & </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>
525
<td class="md">) </td>
526
<td class="md" colspan="2"></td>
532
<table cellspacing="5" cellpadding="0" border="0">
540
Set the value of the attribute with this name, and optionally with this namespace.
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> </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> </td><td>The new value for the attribute </td></tr>
546
<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>
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>
553
<a class="anchor" name="9be4234049fe13f2941d9c7a5dbc37e2"></a><!-- doxytag: member="xmlpp::Element::set_child_text" ref="9be4234049fe13f2941d9c7a5dbc37e2" args="(const Glib::ustring &content)" --><p>
554
<table class="mdTable" cellpadding="2" cellspacing="0">
557
<table cellpadding="0" cellspacing="0" border="0">
559
<td class="md" nowrap valign="top">void xmlpp::Element::set_child_text </td>
560
<td class="md" valign="top">( </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> & </td>
562
<td class="mdname1" valign="top" nowrap> <em>content</em> </td>
563
<td class="md" valign="top"> ) </td>
564
<td class="md" nowrap></td>
570
<table cellspacing="5" cellpadding="0" border="0">
578
Set the text of the first text node, adding one if necessary.
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> </td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#2e9978caa82eb11cadccd4d5fc4e690a">ContentNode::set_content()</a>. </td></tr>
588
<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())" --><p>
589
<table class="mdTable" cellpadding="2" cellspacing="0">
592
<table cellpadding="0" cellspacing="0" border="0">
594
<td class="md" nowrap valign="top">void xmlpp::Element::set_namespace_declaration </td>
595
<td class="md" valign="top">( </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> & </td>
597
<td class="mdname" nowrap> <em>ns_uri</em>, </td>
600
<td class="md" nowrap align="right"></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> & </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>
607
<td class="md">) </td>
608
<td class="md" colspan="2"></td>
614
<table cellspacing="5" cellpadding="0" border="0">
622
This adds a namespace declaration to this node which will apply to this node and all children.
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> </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> </td><td>The namespace prefix. If no prefix is specified then the namespace URI will be the default namespace. </td></tr>
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
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>