<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>libxml++: xmlpp::Element Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libxml++  <span id="projectnumber">2.36.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacexmlpp.html">xmlpp</a></li><li class="navelem"><a class="el" href="classxmlpp_1_1Element.html">Element</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="classxmlpp_1_1Element-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">xmlpp::Element Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><a class="el" href="classxmlpp_1_1Element.html" title="Element nodes have attributes as well as child nodes.">Element</a> nodes have attributes as well as child nodes. <a href="classxmlpp_1_1Element.html#details">More...</a></p> <p><code>#include <libxml++/nodes/element.h></code></p> <div class="dynheader"> Inheritance diagram for xmlpp::Element:</div> <div class="dyncontent"> <div class="center"><img src="classxmlpp_1_1Element__inherit__graph.png" border="0" usemap="#xmlpp_1_1Element_inherit__map" alt="Inheritance graph"/></div> <map name="xmlpp_1_1Element_inherit__map" id="xmlpp_1_1Element_inherit__map"> <area shape="rect" id="node2" href="classxmlpp_1_1Node.html" title="Represents XML Nodes." alt="" coords="29,83,120,111"/><area shape="rect" id="node4" href="classxmlpp_1_1NonCopyable.html" title="Herited by classes which cannot be copied." alt="" coords="5,6,144,34"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for xmlpp::Element:</div> <div class="dyncontent"> <div class="center"><img src="classxmlpp_1_1Element__coll__graph.png" border="0" usemap="#xmlpp_1_1Element_coll__map" alt="Collaboration graph"/></div> <map name="xmlpp_1_1Element_coll__map" id="xmlpp_1_1Element_coll__map"> <area shape="rect" id="node2" href="classxmlpp_1_1Node.html" title="Represents XML Nodes." alt="" coords="29,83,120,111"/><area shape="rect" id="node4" href="classxmlpp_1_1NonCopyable.html" title="Herited by classes which cannot be copied." alt="" coords="5,6,144,34"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr class="memitem:a7c54c83af3dfeddf2a70dba5ca6cc1d1"><td class="memItemLeft" align="right" valign="top">typedef std::list< <a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a7c54c83af3dfeddf2a70dba5ca6cc1d1">AttributeList</a></td></tr> <tr class="inherit_header pub_types_classxmlpp_1_1Node"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classxmlpp_1_1Node')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a></td></tr> <tr class="memitem:a7b0205c6df142d060dfca9119fadff49 inherit pub_types_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">typedef std::list< <a class="el" href="classxmlpp_1_1Node.html">Node</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a7b0205c6df142d060dfca9119fadff49">NodeList</a></td></tr> <tr class="memitem:a0175dca099d30f45ebbfd6a238420426 inherit pub_types_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">typedef std::map<br class="typebreak"/> < Glib::ustring, Glib::ustring > </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a0175dca099d30f45ebbfd6a238420426">PrefixNsMap</a></td></tr> <tr class="memdesc:a0175dca099d30f45ebbfd6a238420426 inherit pub_types_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">A map of namespace prefixes to namespace URIs. <a href="#a0175dca099d30f45ebbfd6a238420426"></a><br/></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:addce07f26b8ca52beb583d942375a756"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#addce07f26b8ca52beb583d942375a756">Element</a> (_xmlNode* node)</td></tr> <tr class="memitem:a6633bfbb6b3b6520ab9ac8fa4991b066"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a6633bfbb6b3b6520ab9ac8fa4991b066">~Element</a> ()</td></tr> <tr class="memitem:a801e28a85e4c45d145d056c5ff7186f3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a801e28a85e4c45d145d056c5ff7186f3">set_namespace_declaration</a> (const Glib::ustring& ns_uri, const Glib::ustring& ns_prefix=Glib::ustring())</td></tr> <tr class="memdesc:a801e28a85e4c45d145d056c5ff7186f3"><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="#a801e28a85e4c45d145d056c5ff7186f3"></a><br/></td></tr> <tr class="memitem:a8fbb85e7ecabc5a8b9b39638f94e4fb7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html#a7c54c83af3dfeddf2a70dba5ca6cc1d1">AttributeList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a8fbb85e7ecabc5a8b9b39638f94e4fb7">get_attributes</a> ()</td></tr> <tr class="memdesc:a8fbb85e7ecabc5a8b9b39638f94e4fb7"><td class="mdescLeft"> </td><td class="mdescRight">Obtain the list of explicitly set attributes for this element. <a href="#a8fbb85e7ecabc5a8b9b39638f94e4fb7"></a><br/></td></tr> <tr class="memitem:afc9883eee2a4fb0584a60b21b5d2673b"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classxmlpp_1_1Element.html#a7c54c83af3dfeddf2a70dba5ca6cc1d1">AttributeList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#afc9883eee2a4fb0584a60b21b5d2673b">get_attributes</a> () const </td></tr> <tr class="memdesc:afc9883eee2a4fb0584a60b21b5d2673b"><td class="mdescLeft"> </td><td class="mdescRight">Obtain the list of explicitly set attributes for this element. <a href="#afc9883eee2a4fb0584a60b21b5d2673b"></a><br/></td></tr> <tr class="memitem:a21fcf0bb1ee913fb698d2ab8911dda77"><td class="memItemLeft" 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#a21fcf0bb1ee913fb698d2ab8911dda77">get_attribute</a> (const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring()) const </td></tr> <tr class="memdesc:a21fcf0bb1ee913fb698d2ab8911dda77"><td class="mdescLeft"> </td><td class="mdescRight">Get the attribute with this name, and optionally with this namespace. <a href="#a21fcf0bb1ee913fb698d2ab8911dda77"></a><br/></td></tr> <tr class="memitem:a8ae47935bca05ac2a6f0d8b02221a6b1"><td class="memItemLeft" align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a8ae47935bca05ac2a6f0d8b02221a6b1">get_attribute_value</a> (const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring()) const </td></tr> <tr class="memdesc:a8ae47935bca05ac2a6f0d8b02221a6b1"><td class="mdescLeft"> </td><td class="mdescRight">Get the value of the attribute with this name, and optionally with this namespace. <a href="#a8ae47935bca05ac2a6f0d8b02221a6b1"></a><br/></td></tr> <tr class="memitem:a359b10f76db129fff5776c8405ac8e9a"><td class="memItemLeft" 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#a359b10f76db129fff5776c8405ac8e9a">set_attribute</a> (const Glib::ustring& name, const Glib::ustring& value, const Glib::ustring& ns_prefix=Glib::ustring())</td></tr> <tr class="memdesc:a359b10f76db129fff5776c8405ac8e9a"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the attribute with this name, and optionally with this namespace. <a href="#a359b10f76db129fff5776c8405ac8e9a"></a><br/></td></tr> <tr class="memitem:a3d5765f07699dc8d4d55c0b0157defad"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a3d5765f07699dc8d4d55c0b0157defad">remove_attribute</a> (const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring())</td></tr> <tr class="memdesc:a3d5765f07699dc8d4d55c0b0157defad"><td class="mdescLeft"> </td><td class="mdescRight">Remove the attribute with this name, and optionally with this namespace. <a href="#a3d5765f07699dc8d4d55c0b0157defad"></a><br/></td></tr> <tr class="memitem:a71885eacc99a1e7812b47d3d0607423a"><td class="memItemLeft" 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#a71885eacc99a1e7812b47d3d0607423a">get_child_text</a> ()</td></tr> <tr class="memdesc:a71885eacc99a1e7812b47d3d0607423a"><td class="mdescLeft"> </td><td class="mdescRight">Get the first child text content node. <a href="#a71885eacc99a1e7812b47d3d0607423a"></a><br/></td></tr> <tr class="memitem:a0a2326904a79f2e2abb5c91a4107fa6f"><td class="memItemLeft" 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#a0a2326904a79f2e2abb5c91a4107fa6f">get_child_text</a> () const </td></tr> <tr class="memdesc:a0a2326904a79f2e2abb5c91a4107fa6f"><td class="mdescLeft"> </td><td class="mdescRight">Get the first child text content node. <a href="#a0a2326904a79f2e2abb5c91a4107fa6f"></a><br/></td></tr> <tr class="memitem:a15cd56e871aaf9625b7f4fbedb97c764"><td class="memItemLeft" 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#a15cd56e871aaf9625b7f4fbedb97c764">add_child_text</a> (const Glib::ustring& content=Glib::ustring())</td></tr> <tr class="memdesc:a15cd56e871aaf9625b7f4fbedb97c764"><td class="mdescLeft"> </td><td class="mdescRight">Append a new text node. <a href="#a15cd56e871aaf9625b7f4fbedb97c764"></a><br/></td></tr> <tr class="memitem:af774512e6c39e8e6741a0ff7bf9250f5"><td class="memItemLeft" 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#af774512e6c39e8e6741a0ff7bf9250f5">add_child_text</a> (<a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a>* previous_sibling, const Glib::ustring& content=Glib::ustring())</td></tr> <tr class="memdesc:af774512e6c39e8e6741a0ff7bf9250f5"><td class="mdescLeft"> </td><td class="mdescRight">Add a new text node after the specified existing child node. <a href="#af774512e6c39e8e6741a0ff7bf9250f5"></a><br/></td></tr> <tr class="memitem:aa05dee4b080f6e3c709397a48ad2a34e"><td class="memItemLeft" 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#aa05dee4b080f6e3c709397a48ad2a34e">add_child_text_before</a> (<a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a>* next_sibling, const Glib::ustring& content=Glib::ustring())</td></tr> <tr class="memdesc:aa05dee4b080f6e3c709397a48ad2a34e"><td class="mdescLeft"> </td><td class="mdescRight">Add a new text node before the specified existing child node. <a href="#aa05dee4b080f6e3c709397a48ad2a34e"></a><br/></td></tr> <tr class="memitem:a9be4234049fe13f2941d9c7a5dbc37e2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a9be4234049fe13f2941d9c7a5dbc37e2">set_child_text</a> (const Glib::ustring& content)</td></tr> <tr class="memdesc:a9be4234049fe13f2941d9c7a5dbc37e2"><td class="mdescLeft"> </td><td class="mdescRight">Set the text of the first text node, adding one if necessary. <a href="#a9be4234049fe13f2941d9c7a5dbc37e2"></a><br/></td></tr> <tr class="memitem:a40d1299122bd9921fcb544ca1236aa95"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a40d1299122bd9921fcb544ca1236aa95">has_child_text</a> () const </td></tr> <tr class="memdesc:a40d1299122bd9921fcb544ca1236aa95"><td class="mdescLeft"> </td><td class="mdescRight">Discover whether one of the child nodes is a text node. <a href="#a40d1299122bd9921fcb544ca1236aa95"></a><br/></td></tr> <tr class="memitem:af69479710a4ab4cd8e89703a20dd360e"><td class="memItemLeft" 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#af69479710a4ab4cd8e89703a20dd360e">add_child_comment</a> (const Glib::ustring& content)</td></tr> <tr class="memdesc:af69479710a4ab4cd8e89703a20dd360e"><td class="mdescLeft"> </td><td class="mdescRight">Append a new comment node. <a href="#af69479710a4ab4cd8e89703a20dd360e"></a><br/></td></tr> <tr class="memitem:a422cf7abd2dcc7da5a465f9b6afffd05"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1CdataNode.html">CdataNode</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a422cf7abd2dcc7da5a465f9b6afffd05">add_child_cdata</a> (const Glib::ustring& content)</td></tr> <tr class="memdesc:a422cf7abd2dcc7da5a465f9b6afffd05"><td class="mdescLeft"> </td><td class="mdescRight">Append a new CDATA node. <a href="#a422cf7abd2dcc7da5a465f9b6afffd05"></a><br/></td></tr> <tr class="memitem:a3a9aa8bc8745eb2521f705c1d468cc85"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1EntityReference.html">EntityReference</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a3a9aa8bc8745eb2521f705c1d468cc85">add_child_entity_reference</a> (const Glib::ustring& name)</td></tr> <tr class="memdesc:a3a9aa8bc8745eb2521f705c1d468cc85"><td class="mdescLeft"> </td><td class="mdescRight">Append a new entity reference node. <a href="#a3a9aa8bc8745eb2521f705c1d468cc85"></a><br/></td></tr> <tr class="memitem:a1fec4ad7b2f01d71606432ab9dfc27dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1ProcessingInstructionNode.html">ProcessingInstructionNode</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#a1fec4ad7b2f01d71606432ab9dfc27dd">add_child_processing_instruction</a> (const Glib::ustring& name, const Glib::ustring& content)</td></tr> <tr class="memdesc:a1fec4ad7b2f01d71606432ab9dfc27dd"><td class="mdescLeft"> </td><td class="mdescRight">Append a new processing instruction node. <a href="#a1fec4ad7b2f01d71606432ab9dfc27dd"></a><br/></td></tr> <tr class="inherit_header pub_methods_classxmlpp_1_1Node"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classxmlpp_1_1Node')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a></td></tr> <tr class="memitem:a215d8c01b6b01596c4ea853f99dce8e7 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a215d8c01b6b01596c4ea853f99dce8e7">Node</a> (_xmlNode* node)</td></tr> <tr class="memitem:a042c5de83dba6bf5d1923d76f1fb58c0 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a042c5de83dba6bf5d1923d76f1fb58c0">~Node</a> ()</td></tr> <tr class="memitem:ad8cba86cb7f43dd512f5b6817ed47d9a inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#ad8cba86cb7f43dd512f5b6817ed47d9a">get_name</a> () const </td></tr> <tr class="memdesc:ad8cba86cb7f43dd512f5b6817ed47d9a inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the name of this node. <a href="#ad8cba86cb7f43dd512f5b6817ed47d9a"></a><br/></td></tr> <tr class="memitem:ab5e1b1059a2af0818b1a8937fad49835 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#ab5e1b1059a2af0818b1a8937fad49835">set_name</a> (const Glib::ustring& name)</td></tr> <tr class="memdesc:ab5e1b1059a2af0818b1a8937fad49835 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Set the name of this node. <a href="#ab5e1b1059a2af0818b1a8937fad49835"></a><br/></td></tr> <tr class="memitem:a4ddefaaaf3f0b550e776e9100bc23257 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a4ddefaaaf3f0b550e776e9100bc23257">set_namespace</a> (const Glib::ustring& ns_prefix)</td></tr> <tr class="memdesc:a4ddefaaaf3f0b550e776e9100bc23257 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Set the namespace prefix used by the node. <a href="#a4ddefaaaf3f0b550e776e9100bc23257"></a><br/></td></tr> <tr class="memitem:a06790680c79808f1a56ddea438a6df5c inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a06790680c79808f1a56ddea438a6df5c">get_namespace_prefix</a> () const </td></tr> <tr class="memdesc:a06790680c79808f1a56ddea438a6df5c inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the namespace prefix of this node. <a href="#a06790680c79808f1a56ddea438a6df5c"></a><br/></td></tr> <tr class="memitem:a9356e5ee02dbc809f9bf139b12befc6c inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a9356e5ee02dbc809f9bf139b12befc6c">get_namespace_uri</a> () const </td></tr> <tr class="memdesc:a9356e5ee02dbc809f9bf139b12befc6c inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the namespace URI of this node. <a href="#a9356e5ee02dbc809f9bf139b12befc6c"></a><br/></td></tr> <tr class="memitem:a5e21f3a9996e25bd2df5ec8ce9906575 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a5e21f3a9996e25bd2df5ec8ce9906575">get_line</a> () const </td></tr> <tr class="memdesc:a5e21f3a9996e25bd2df5ec8ce9906575 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Discover at what line number this node occurs in the XML file. <a href="#a5e21f3a9996e25bd2df5ec8ce9906575"></a><br/></td></tr> <tr class="memitem:aa8a68ac1887a33e44e3af365bd02db1b inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classxmlpp_1_1Element.html">Element</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#aa8a68ac1887a33e44e3af365bd02db1b">get_parent</a> () const </td></tr> <tr class="memdesc:aa8a68ac1887a33e44e3af365bd02db1b inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the parent element for this node. <a href="#aa8a68ac1887a33e44e3af365bd02db1b"></a><br/></td></tr> <tr class="memitem:a998e8cb924bd04abf72e57b68d2817f4 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a998e8cb924bd04abf72e57b68d2817f4">get_parent</a> ()</td></tr> <tr class="memdesc:a998e8cb924bd04abf72e57b68d2817f4 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the parent element for this node. <a href="#a998e8cb924bd04abf72e57b68d2817f4"></a><br/></td></tr> <tr class="memitem:a59a3e52fd752c243654a2cb58b1b0e18 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a59a3e52fd752c243654a2cb58b1b0e18">get_next_sibling</a> () const </td></tr> <tr class="memdesc:a59a3e52fd752c243654a2cb58b1b0e18 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the next sibling for this node. <a href="#a59a3e52fd752c243654a2cb58b1b0e18"></a><br/></td></tr> <tr class="memitem:a2576ce35a6a3dd13b49e857524360ac4 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Node.html">Node</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a2576ce35a6a3dd13b49e857524360ac4">get_next_sibling</a> ()</td></tr> <tr class="memdesc:a2576ce35a6a3dd13b49e857524360ac4 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the next sibling for this node. <a href="#a2576ce35a6a3dd13b49e857524360ac4"></a><br/></td></tr> <tr class="memitem:aa3ca83ba6e10ff21060be5d0441fa6ac inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#aa3ca83ba6e10ff21060be5d0441fa6ac">get_previous_sibling</a> () const </td></tr> <tr class="memdesc:aa3ca83ba6e10ff21060be5d0441fa6ac inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the previous sibling for this node . <a href="#aa3ca83ba6e10ff21060be5d0441fa6ac"></a><br/></td></tr> <tr class="memitem:a567be4ebaffb2cd3dd2ae602c8df4a29 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Node.html">Node</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a567be4ebaffb2cd3dd2ae602c8df4a29">get_previous_sibling</a> ()</td></tr> <tr class="memdesc:a567be4ebaffb2cd3dd2ae602c8df4a29 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the previous sibling for this node. <a href="#a567be4ebaffb2cd3dd2ae602c8df4a29"></a><br/></td></tr> <tr class="memitem:a0e244ac3573fc927bcb0f70d6b70f5d2 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a0e244ac3573fc927bcb0f70d6b70f5d2">get_first_child</a> (const Glib::ustring& name=Glib::ustring()) const </td></tr> <tr class="memdesc:a0e244ac3573fc927bcb0f70d6b70f5d2 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the first child of this node. <a href="#a0e244ac3573fc927bcb0f70d6b70f5d2"></a><br/></td></tr> <tr class="memitem:a5eb1d1e3d4616604da7cf58da15b6fa7 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Node.html">Node</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a5eb1d1e3d4616604da7cf58da15b6fa7">get_first_child</a> (const Glib::ustring& name=Glib::ustring())</td></tr> <tr class="memdesc:a5eb1d1e3d4616604da7cf58da15b6fa7 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the first child of this node. <a href="#a5eb1d1e3d4616604da7cf58da15b6fa7"></a><br/></td></tr> <tr class="memitem:abb9d4d7aad234b9b01ae7fe404915a95 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Node.html#a7b0205c6df142d060dfca9119fadff49">NodeList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#abb9d4d7aad234b9b01ae7fe404915a95">get_children</a> (const Glib::ustring& name=Glib::ustring())</td></tr> <tr class="memdesc:abb9d4d7aad234b9b01ae7fe404915a95 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Obtain the list of child nodes. <a href="#abb9d4d7aad234b9b01ae7fe404915a95"></a><br/></td></tr> <tr class="memitem:a2cb9f082c7bebc349c1f606e69788a57 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classxmlpp_1_1Node.html#a7b0205c6df142d060dfca9119fadff49">NodeList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a2cb9f082c7bebc349c1f606e69788a57">get_children</a> (const Glib::ustring& name=Glib::ustring()) const </td></tr> <tr class="memdesc:a2cb9f082c7bebc349c1f606e69788a57 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Obtain the list of child nodes. <a href="#a2cb9f082c7bebc349c1f606e69788a57"></a><br/></td></tr> <tr class="memitem:ac56c54f8006cbfb545642cbf2e96bc4a inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#ac56c54f8006cbfb545642cbf2e96bc4a">add_child</a> (const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring())</td></tr> <tr class="memdesc:ac56c54f8006cbfb545642cbf2e96bc4a inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Add a child element to this node. <a href="#ac56c54f8006cbfb545642cbf2e96bc4a"></a><br/></td></tr> <tr class="memitem:a57bc6d6c941f1477a2445609d49ce645 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a57bc6d6c941f1477a2445609d49ce645">add_child</a> (<a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a>* previous_sibling, const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring())</td></tr> <tr class="memdesc:a57bc6d6c941f1477a2445609d49ce645 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Add a child element to this node after the specified existing child node. <a href="#a57bc6d6c941f1477a2445609d49ce645"></a><br/></td></tr> <tr class="memitem:a9dff93a466cfbeda0357dfc9a3bd316c inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a9dff93a466cfbeda0357dfc9a3bd316c">add_child_before</a> (<a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a>* next_sibling, const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring())</td></tr> <tr class="memdesc:a9dff93a466cfbeda0357dfc9a3bd316c inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Add a child element to this node before the specified existing child node. <a href="#a9dff93a466cfbeda0357dfc9a3bd316c"></a><br/></td></tr> <tr class="memitem:a00ccfb39d9b6d82b5acd5f458c8f8ca8 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a00ccfb39d9b6d82b5acd5f458c8f8ca8">remove_child</a> (<a class="el" href="classxmlpp_1_1Node.html">Node</a>* node)</td></tr> <tr class="memdesc:a00ccfb39d9b6d82b5acd5f458c8f8ca8 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Remove the child node. <a href="#a00ccfb39d9b6d82b5acd5f458c8f8ca8"></a><br/></td></tr> <tr class="memitem:aea42eae72fa7901aa1fb8f5c0fd194ec inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Node.html">Node</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#aea42eae72fa7901aa1fb8f5c0fd194ec">import_node</a> (const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* node, bool recursive=true)</td></tr> <tr class="memdesc:aea42eae72fa7901aa1fb8f5c0fd194ec inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Import node(s) from another document under this node, without affecting the source node. <a href="#aea42eae72fa7901aa1fb8f5c0fd194ec"></a><br/></td></tr> <tr class="memitem:ad05b43e18a4600ada423b74a59efb541 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#ad05b43e18a4600ada423b74a59efb541">get_path</a> () const </td></tr> <tr class="memdesc:ad05b43e18a4600ada423b74a59efb541 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Get the XPath of this node. <a href="#ad05b43e18a4600ada423b74a59efb541"></a><br/></td></tr> <tr class="memitem:a25e56c6ae44be0926d1efcc7e488d96f inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacexmlpp.html#a649baf2bb62274444784ffb180b3f34c">NodeSet</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a25e56c6ae44be0926d1efcc7e488d96f">find</a> (const Glib::ustring& xpath) const </td></tr> <tr class="memdesc:a25e56c6ae44be0926d1efcc7e488d96f inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Find nodes from an XPath expression. <a href="#a25e56c6ae44be0926d1efcc7e488d96f"></a><br/></td></tr> <tr class="memitem:a4bfbd6ed354524c960d6cd425c534c7c inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacexmlpp.html#a649baf2bb62274444784ffb180b3f34c">NodeSet</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a4bfbd6ed354524c960d6cd425c534c7c">find</a> (const Glib::ustring& xpath, const <a class="el" href="classxmlpp_1_1Node.html#a0175dca099d30f45ebbfd6a238420426">PrefixNsMap</a>& namespaces) const </td></tr> <tr class="memdesc:a4bfbd6ed354524c960d6cd425c534c7c inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Find nodes from an XPath expression. <a href="#a4bfbd6ed354524c960d6cd425c534c7c"></a><br/></td></tr> <tr class="memitem:a676b7cc5db3c19fed65a72bee18ecddb inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a676b7cc5db3c19fed65a72bee18ecddb">eval_to_boolean</a> (const Glib::ustring& xpath, <a class="el" href="namespacexmlpp.html#ac91075edf569a213343d7d13ae4be3c8">XPathResultType</a>* result_type=0) const </td></tr> <tr class="memdesc:a676b7cc5db3c19fed65a72bee18ecddb inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate an XPath expression. <a href="#a676b7cc5db3c19fed65a72bee18ecddb"></a><br/></td></tr> <tr class="memitem:aecccaf7c600e523313eb4d9fe322777b inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#aecccaf7c600e523313eb4d9fe322777b">eval_to_boolean</a> (const Glib::ustring& xpath, const <a class="el" href="classxmlpp_1_1Node.html#a0175dca099d30f45ebbfd6a238420426">PrefixNsMap</a>& namespaces, <a class="el" href="namespacexmlpp.html#ac91075edf569a213343d7d13ae4be3c8">XPathResultType</a>* result_type=0) const </td></tr> <tr class="memdesc:aecccaf7c600e523313eb4d9fe322777b inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate an XPath expression. <a href="#aecccaf7c600e523313eb4d9fe322777b"></a><br/></td></tr> <tr class="memitem:a7c8a3f5f33d7ee8d8dad1b9333ac3edc inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a7c8a3f5f33d7ee8d8dad1b9333ac3edc">eval_to_number</a> (const Glib::ustring& xpath, <a class="el" href="namespacexmlpp.html#ac91075edf569a213343d7d13ae4be3c8">XPathResultType</a>* result_type=0) const </td></tr> <tr class="memdesc:a7c8a3f5f33d7ee8d8dad1b9333ac3edc inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate an XPath expression. <a href="#a7c8a3f5f33d7ee8d8dad1b9333ac3edc"></a><br/></td></tr> <tr class="memitem:a484af20daae39fe5db0a1ce2f16cc73e inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a484af20daae39fe5db0a1ce2f16cc73e">eval_to_number</a> (const Glib::ustring& xpath, const <a class="el" href="classxmlpp_1_1Node.html#a0175dca099d30f45ebbfd6a238420426">PrefixNsMap</a>& namespaces, <a class="el" href="namespacexmlpp.html#ac91075edf569a213343d7d13ae4be3c8">XPathResultType</a>* result_type=0) const </td></tr> <tr class="memdesc:a484af20daae39fe5db0a1ce2f16cc73e inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate an XPath expression. <a href="#a484af20daae39fe5db0a1ce2f16cc73e"></a><br/></td></tr> <tr class="memitem:a9ecbce3fafb8ab13d227c739c3e789f2 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a9ecbce3fafb8ab13d227c739c3e789f2">eval_to_string</a> (const Glib::ustring& xpath, <a class="el" href="namespacexmlpp.html#ac91075edf569a213343d7d13ae4be3c8">XPathResultType</a>* result_type=0) const </td></tr> <tr class="memdesc:a9ecbce3fafb8ab13d227c739c3e789f2 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate an XPath expression. <a href="#a9ecbce3fafb8ab13d227c739c3e789f2"></a><br/></td></tr> <tr class="memitem:ab2a27479f8482aecd5fb67c18b9b1579 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#ab2a27479f8482aecd5fb67c18b9b1579">eval_to_string</a> (const Glib::ustring& xpath, const <a class="el" href="classxmlpp_1_1Node.html#a0175dca099d30f45ebbfd6a238420426">PrefixNsMap</a>& namespaces, <a class="el" href="namespacexmlpp.html#ac91075edf569a213343d7d13ae4be3c8">XPathResultType</a>* result_type=0) const </td></tr> <tr class="memdesc:ab2a27479f8482aecd5fb67c18b9b1579 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate an XPath expression. <a href="#ab2a27479f8482aecd5fb67c18b9b1579"></a><br/></td></tr> <tr class="memitem:aeede250f5cf6de5f55cb7bb94084ec7c inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">_xmlNode* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#aeede250f5cf6de5f55cb7bb94084ec7c">cobj</a> ()</td></tr> <tr class="memdesc:aeede250f5cf6de5f55cb7bb94084ec7c inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Access the underlying libxml implementation. <a href="#aeede250f5cf6de5f55cb7bb94084ec7c"></a><br/></td></tr> <tr class="memitem:a831eea0dbe1e51a350a9b20a2da47fc9 inherit pub_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">const _xmlNode* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a831eea0dbe1e51a350a9b20a2da47fc9">cobj</a> () const </td></tr> <tr class="memdesc:a831eea0dbe1e51a350a9b20a2da47fc9 inherit pub_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Access the underlying libxml implementation. <a href="#a831eea0dbe1e51a350a9b20a2da47fc9"></a><br/></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr class="memitem:af4c996b3eed332ed7e4e3096427e624d"><td class="memItemLeft" align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Element.html#af4c996b3eed332ed7e4e3096427e624d">get_namespace_uri_for_prefix</a> (const Glib::ustring& ns_prefix) const </td></tr> <tr class="inherit_header pro_methods_classxmlpp_1_1Node"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classxmlpp_1_1Node')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a></td></tr> <tr class="memitem:af8d31aaa506d229651e8328f8294f5df inherit pro_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">_xmlNode* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#af8d31aaa506d229651e8328f8294f5df">create_new_child_node</a> (const Glib::ustring& name, const Glib::ustring& ns_prefix)</td></tr> <tr class="memdesc:af8d31aaa506d229651e8328f8294f5df inherit pro_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Create the C instance ready to be added to the parent node. <a href="#af8d31aaa506d229651e8328f8294f5df"></a><br/></td></tr> <tr class="inherit_header pro_methods_classxmlpp_1_1NonCopyable"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classxmlpp_1_1NonCopyable')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classxmlpp_1_1NonCopyable.html">xmlpp::NonCopyable</a></td></tr> <tr class="memitem:a77c785ff1149642caa3058f49223f112 inherit pro_methods_classxmlpp_1_1NonCopyable"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1NonCopyable.html#a77c785ff1149642caa3058f49223f112">NonCopyable</a> ()</td></tr> <tr class="memitem:a14e2e0391beb4b8f20f5d51e8a253d63 inherit pro_methods_classxmlpp_1_1NonCopyable"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1NonCopyable.html#a14e2e0391beb4b8f20f5d51e8a253d63">~NonCopyable</a> ()</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_static_methods_classxmlpp_1_1Node"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classxmlpp_1_1Node')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a></td></tr> <tr class="memitem:a616a872d0fbd86206c0beee0be5abee3 inherit pub_static_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a616a872d0fbd86206c0beee0be5abee3">create_wrapper</a> (_xmlNode* node)</td></tr> <tr class="memdesc:a616a872d0fbd86206c0beee0be5abee3 inherit pub_static_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Construct the correct C++ instance for a given libxml C struct instance. <a href="#a616a872d0fbd86206c0beee0be5abee3"></a><br/></td></tr> <tr class="memitem:aa47901df78305a685fc9682cd44290d6 inherit pub_static_methods_classxmlpp_1_1Node"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#aa47901df78305a685fc9682cd44290d6">free_wrappers</a> (_xmlNode* node)</td></tr> <tr class="memdesc:aa47901df78305a685fc9682cd44290d6 inherit pub_static_methods_classxmlpp_1_1Node"><td class="mdescLeft"> </td><td class="mdescRight">Delete the C++ instance for a given libxml C struct instance, and also recursively destroy the C++ instances for any children. <a href="#aa47901df78305a685fc9682cd44290d6"></a><br/></td></tr> </table> <a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classxmlpp_1_1Element.html" title="Element nodes have attributes as well as child nodes.">Element</a> nodes have attributes as well as child nodes. </p> <p>This will be instantiated by the parser. </p> </div><h2>Member Typedef Documentation</h2> <a class="anchor" id="a7c54c83af3dfeddf2a70dba5ca6cc1d1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef std::list<<a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>*> <a class="el" href="classxmlpp_1_1Element.html#a7c54c83af3dfeddf2a70dba5ca6cc1d1">xmlpp::Element::AttributeList</a></td> </tr> </table> </div><div class="memdoc"> </div> </div> <h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="addce07f26b8ca52beb583d942375a756"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">xmlpp::Element::Element </td> <td>(</td> <td class="paramtype">_xmlNode * </td> <td class="paramname"><em>node</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">explicit</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="a6633bfbb6b3b6520ab9ac8fa4991b066"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual xmlpp::Element::~Element </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <h2>Member Function Documentation</h2> <a class="anchor" id="a422cf7abd2dcc7da5a465f9b6afffd05"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1CdataNode.html">CdataNode</a>* xmlpp::Element::add_child_cdata </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>content</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Append a new CDATA node. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">content</td><td>The raw text. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The new CDATA node. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="af69479710a4ab4cd8e89703a20dd360e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* xmlpp::Element::add_child_comment </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>content</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Append a new comment node. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">content</td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node.">ContentNode::set_content()</a>. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The new comment node. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a3a9aa8bc8745eb2521f705c1d468cc85"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1EntityReference.html">EntityReference</a>* xmlpp::Element::add_child_entity_reference </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>name</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Append a new entity reference node. </p> <p>The reference can be either an entity reference ("name" or "&name;") or a character reference ("#dec", "#xhex", "&#dec;", or "&#xhex;").</p> <p>'&' and ';' are optional. If they exist, they are stripped from the stored copy of the name. <a class="el" href="classxmlpp_1_1Node.html#ad8cba86cb7f43dd512f5b6817ed47d9a" title="Get the name of this node.">Node::get_name()</a> returns the name without '&' and ';'. If the <a class="el" href="classxmlpp_1_1Document.html" title="Represents an XML document in the DOM model.">Document</a> is written to an XML file, '&' and ';' are written.</p> <dl class="since_2_36"><dt><b><a class="el" href="since_2_36.html#_since_2_36000007">Since libxml++ 2.36:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The name of the entity. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The new entity reference node. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a1fec4ad7b2f01d71606432ab9dfc27dd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1ProcessingInstructionNode.html">ProcessingInstructionNode</a>* xmlpp::Element::add_child_processing_instruction </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>content</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Append a new processing instruction node. </p> <dl class="since_2_36"><dt><b><a class="el" href="since_2_36.html#_since_2_36000008">Since libxml++ 2.36:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The name of the application to which the instruction is directed. </td></tr> <tr><td class="paramname">content</td><td>The content of the instruction. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node.">ContentNode::set_content()</a>. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The new processing instruction node. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a15cd56e871aaf9625b7f4fbedb97c764"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::add_child_text </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>content</em> = <code>Glib::ustring()</code></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Append a new text node. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">content</td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node.">ContentNode::set_content()</a>. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The new text node. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="af774512e6c39e8e6741a0ff7bf9250f5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::add_child_text </td> <td>(</td> <td class="paramtype"><a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a>* </td> <td class="paramname"><em>previous_sibling</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>content</em> = <code>Glib::ustring()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Add a new text node after the specified existing child node. </p> <dl class="since_2_24"><dt><b><a class="el" href="since_2_24.html#_since_2_24000002">Since libxml++ 2.24:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">previous_sibling</td><td>An existing child node. </td></tr> <tr><td class="paramname">content</td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node.">ContentNode::set_content()</a>. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The new text node. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aa05dee4b080f6e3c709397a48ad2a34e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::add_child_text_before </td> <td>(</td> <td class="paramtype"><a class="el" href="classxmlpp_1_1Node.html">xmlpp::Node</a>* </td> <td class="paramname"><em>next_sibling</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>content</em> = <code>Glib::ustring()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Add a new text node before the specified existing child node. </p> <dl class="since_2_24"><dt><b><a class="el" href="since_2_24.html#_since_2_24000003">Since libxml++ 2.24:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">next_sibling</td><td>An existing child node. </td></tr> <tr><td class="paramname">content</td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node.">ContentNode::set_content()</a>. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The new text node. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a21fcf0bb1ee913fb698d2ab8911dda77"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* xmlpp::Element::get_attribute </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>ns_prefix</em> = <code>Glib::ustring()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Get the attribute with this name, and optionally with this namespace. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The name of the attribute that will be retrieved. </td></tr> <tr><td class="paramname">ns_prefix</td><td>Namespace prefix. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The attribute, or 0 if no suitable <a class="el" href="classxmlpp_1_1Attribute.html" title="Represents an XML Node attribute.">Attribute</a> was found. Is either an AttributeNode*, pointing to an explicitly set attribute, or an AttributeDeclaration*, pointing to the declaration of an attribute with a default value. </dd></dl> </div> </div> <a class="anchor" id="a8ae47935bca05ac2a6f0d8b02221a6b1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Glib::ustring xmlpp::Element::get_attribute_value </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>ns_prefix</em> = <code>Glib::ustring()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Get the value of the attribute with this name, and optionally with this namespace. </p> <p>For finer control, you might use <a class="el" href="classxmlpp_1_1Element.html#a21fcf0bb1ee913fb698d2ab8911dda77" title="Get the attribute with this name, and optionally with this namespace.">get_attribute()</a> and use the methods of the <a class="el" href="classxmlpp_1_1Attribute.html" title="Represents an XML Node attribute.">Attribute</a> class. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The name of the attribute whose value will be retrieved. </td></tr> <tr><td class="paramname">ns_prefix</td><td>Namespace prefix. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The text value of the attribute, or an empty string if no such attribute was found.</dd></dl> <dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000001">Since libxml++ 2.20:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a8fbb85e7ecabc5a8b9b39638f94e4fb7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1Element.html#a7c54c83af3dfeddf2a70dba5ca6cc1d1">AttributeList</a> xmlpp::Element::get_attributes </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Obtain the list of explicitly set attributes for this element. </p> <dl class="section return"><dt>Returns</dt><dd>The list of explicitly set attributes. </dd></dl> </div> </div> <a class="anchor" id="afc9883eee2a4fb0584a60b21b5d2673b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classxmlpp_1_1Element.html#a7c54c83af3dfeddf2a70dba5ca6cc1d1">AttributeList</a> xmlpp::Element::get_attributes </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Obtain the list of explicitly set attributes for this element. </p> <dl class="section return"><dt>Returns</dt><dd>The list of explicitly set attributes. </dd></dl> </div> </div> <a class="anchor" id="a71885eacc99a1e7812b47d3d0607423a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::get_child_text </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Get the first child text content node. </p> <p>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. </p> <dl class="section return"><dt>Returns</dt><dd>The first text node, if any. </dd></dl> </div> </div> <a class="anchor" id="a0a2326904a79f2e2abb5c91a4107fa6f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classxmlpp_1_1TextNode.html">TextNode</a>* xmlpp::Element::get_child_text </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Get the first child text content node. </p> <p>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. </p> <dl class="section return"><dt>Returns</dt><dd>The first text node, if any. </dd></dl> </div> </div> <a class="anchor" id="af4c996b3eed332ed7e4e3096427e624d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">Glib::ustring xmlpp::Element::get_namespace_uri_for_prefix </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>ns_prefix</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="a40d1299122bd9921fcb544ca1236aa95"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool xmlpp::Element::has_child_text </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Discover whether one of the child nodes is a text node. </p> <p>This is a convenience method, meant as an alternative to iterating over all the child nodes and examining them directly. </p> <dl class="section return"><dt>Returns</dt><dd>Whether this node has a child text node. </dd></dl> </div> </div> <a class="anchor" id="a3d5765f07699dc8d4d55c0b0157defad"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void xmlpp::Element::remove_attribute </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>ns_prefix</em> = <code>Glib::ustring()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Remove the attribute with this name, and optionally with this namespace. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The name of the attribute to be removed </td></tr> <tr><td class="paramname">ns_prefix</td><td>Namespace prefix. If specified, the attribute will be removed only if the attribute has this namespace. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a359b10f76db129fff5776c8405ac8e9a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classxmlpp_1_1Attribute.html">Attribute</a>* xmlpp::Element::set_attribute </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>ns_prefix</em> = <code>Glib::ustring()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Set the value of the attribute with this name, and optionally with this namespace. </p> <p>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#a21fcf0bb1ee913fb698d2ab8911dda77" title="Get the attribute with this name, and optionally with this namespace.">get_attribute()</a> and use the methods of the <a class="el" href="classxmlpp_1_1Attribute.html" title="Represents an XML Node attribute.">Attribute</a> class. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The name of the attribute whose value will change. </td></tr> <tr><td class="paramname">value</td><td>The new value for the attribute </td></tr> <tr><td class="paramname">ns_prefix</td><td>Namespace prefix. If the prefix has not been declared then this method will throw an exception. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The attribute that was changed, or 0 is no suitable <a class="el" href="classxmlpp_1_1Attribute.html" title="Represents an XML Node attribute.">Attribute</a> was found. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions.">xmlpp::exception</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a9be4234049fe13f2941d9c7a5dbc37e2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void xmlpp::Element::set_child_text </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>content</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Set the text of the first text node, adding one if necessary. </p> <p>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. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">content</td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node.">ContentNode::set_content()</a>. </td></tr> </table> </dd> </dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a801e28a85e4c45d145d056c5ff7186f3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void xmlpp::Element::set_namespace_declaration </td> <td>(</td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>ns_uri</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Glib::ustring & </td> <td class="paramname"><em>ns_prefix</em> = <code>Glib::ustring()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This adds a namespace declaration to this node which will apply to this node and all children. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ns_uri</td><td>The namespace to associate with the prefix, or to use as the default namespace if no prefix is specified. </td></tr> <tr><td class="paramname">ns_prefix</td><td>The namespace prefix. If no prefix is specified then the namespace URI will be the default namespace. </td></tr> </table> </dd> </dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions.">xmlpp::exception</a></td><td>If a new namespace node cannot be created, e.g. because a namespace with the same prefix but another URI already exists. </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>nodes/element.h</li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Nov 4 2012 22:04:14 for libxml++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.2 </small></address> </body> </html>