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

« back to all changes in this revision

Viewing changes to docs/reference/2.20/html/classxmlpp_1_1Node.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-09-18 11:32:24 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20070918113224-7x031mzf1shoozxx
Tags: 2.20.0-0ubuntu1
* New upstream release:
  - Element: Added get_attribute_value(), to get a simple text value for an
    attribute.
  - Added an experimental --enable-api-exceptions configure option, to allow
    libxml++ to build without exceptions.
* debian/libxml++2.6-doc.docs: 2.18 -> 2.20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 
3
<title>libxml++: xmlpp::Node Class Reference</title>
 
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
 
5
<link href="tabs.css" rel="stylesheet" type="text/css">
 
6
</head><body>
 
7
<!-- Generated by Doxygen 1.5.1 -->
 
8
<div class="tabs">
 
9
  <ul>
 
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
 
11
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
 
12
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
 
13
    <li><a href="files.html"><span>Files</span></a></li>
 
14
    <li><a href="dirs.html"><span>Directories</span></a></li>
 
15
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
 
16
  </ul></div>
 
17
<div class="tabs">
 
18
  <ul>
 
19
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
 
20
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
 
21
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
 
22
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
 
23
  </ul></div>
 
24
<div class="nav">
 
25
<a class="el" href="namespacexmlpp.html">xmlpp</a>::<a class="el" href="classxmlpp_1_1Node.html">Node</a></div>
 
26
<h1>xmlpp::Node Class Reference</h1><!-- doxytag: class="xmlpp::Node" --><!-- doxytag: inherits="xmlpp::NonCopyable" -->Represents XML Nodes.  
 
27
<a href="#_details">More...</a>
 
28
<p>
 
29
Inheritance diagram for xmlpp::Node:<p><center><img src="classxmlpp_1_1Node__inherit__graph.jpg" border="0" usemap="#xmlpp_1_1Node__inherit__map" alt="Inheritance graph"></center>
 
30
<map name="xmlpp_1_1Node__inherit__map">
 
31
<area href="classxmlpp_1_1Attribute.html" shape="rect" coords="145,161,271,188" alt="">
 
32
<area href="classxmlpp_1_1ContentNode.html" shape="rect" coords="295,161,452,188" alt="">
 
33
<area href="classxmlpp_1_1Element.html" shape="rect" coords="476,161,599,188" alt="">
 
34
<area href="classxmlpp_1_1EntityReference.html" shape="rect" coords="623,161,796,188" alt="">
 
35
<area href="classxmlpp_1_1NonCopyable.html" shape="rect" coords="376,7,533,33" alt="">
 
36
<area href="classxmlpp_1_1CdataNode.html" shape="rect" coords="5,239,149,265" alt="">
 
37
<area href="classxmlpp_1_1CommentNode.html" shape="rect" coords="173,239,344,265" alt="">
 
38
<area href="classxmlpp_1_1ProcessingInstructionNode.html" shape="rect" coords="368,239,608,265" alt="">
 
39
<area href="classxmlpp_1_1TextNode.html" shape="rect" coords="632,239,763,265" alt="">
 
40
</map>
 
41
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxmlpp_1_1Node-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
 
42
<tr><td></td></tr>
 
43
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
 
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1list.html">std::list</a>&lt; <a class="el" href="classxmlpp_1_1Node.html">Node</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#7b0205c6df142d060dfca9119fadff49">NodeList</a></td></tr>
 
45
 
 
46
<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_1map.html">std::map</a>&lt; <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>,<br>
 
47
 <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> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#0175dca099d30f45ebbfd6a238420426">PrefixNsMap</a></td></tr>
 
48
 
 
49
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A map of namespace prefixes to namespace URIs.  <a href="#0175dca099d30f45ebbfd6a238420426"></a><br></td></tr>
 
50
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
 
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#215d8c01b6b01596c4ea853f99dce8e7">Node</a> (_xmlNode *node)</td></tr>
 
52
 
 
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#042c5de83dba6bf5d1923d76f1fb58c0">~Node</a> ()</td></tr>
 
54
 
 
55
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#a6e2ed0fe1a5f544867ebcbb94ebdb1d">get_name</a> () const</td></tr>
 
56
 
 
57
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the name of this node.  <a href="#a6e2ed0fe1a5f544867ebcbb94ebdb1d"></a><br></td></tr>
 
58
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#b5e1b1059a2af0818b1a8937fad49835">set_name</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;name)</td></tr>
 
59
 
 
60
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the name of this node.  <a href="#b5e1b1059a2af0818b1a8937fad49835"></a><br></td></tr>
 
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#4ddefaaaf3f0b550e776e9100bc23257">set_namespace</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;ns_prefix)</td></tr>
 
62
 
 
63
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the namespace prefix used by the node If no such namespace prefix has been declared then this method will throw an exception.  <a href="#4ddefaaaf3f0b550e776e9100bc23257"></a><br></td></tr>
 
64
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#5eca79de2acfb40b1709b6b54186ffd7">get_namespace_prefix</a> () const</td></tr>
 
65
 
 
66
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#ba86520d67e69c57ceaef459b058ec8f">get_namespace_uri</a> () const</td></tr>
 
67
 
 
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#cb268824e43544ae4c431192d0b64d6c">get_line</a> () const</td></tr>
 
69
 
 
70
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Discover at what line number this node occurs in the XML file.  <a href="#cb268824e43544ae4c431192d0b64d6c"></a><br></td></tr>
 
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classxmlpp_1_1Element.html">Element</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#12d1a5de2b8314c6588b23ddb83ac7e5">get_parent</a> () const</td></tr>
 
72
 
 
73
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the parent element for this node.  <a href="#12d1a5de2b8314c6588b23ddb83ac7e5"></a><br></td></tr>
 
74
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#998e8cb924bd04abf72e57b68d2817f4">get_parent</a> ()</td></tr>
 
75
 
 
76
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the parent element for this node.  <a href="#998e8cb924bd04abf72e57b68d2817f4"></a><br></td></tr>
 
77
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#46801c7ceac58eef36b87e82b23fe171">get_next_sibling</a> () const</td></tr>
 
78
 
 
79
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the next sibling for this node.  <a href="#46801c7ceac58eef36b87e82b23fe171"></a><br></td></tr>
 
80
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#2576ce35a6a3dd13b49e857524360ac4">get_next_sibling</a> ()</td></tr>
 
81
 
 
82
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the next sibling for this node.  <a href="#2576ce35a6a3dd13b49e857524360ac4"></a><br></td></tr>
 
83
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#9c2169d1a0829acbc9a9ec5df4219b0b">get_previous_sibling</a> () const</td></tr>
 
84
 
 
85
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the previous sibling for this node.  <a href="#9c2169d1a0829acbc9a9ec5df4219b0b"></a><br></td></tr>
 
86
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#567be4ebaffb2cd3dd2ae602c8df4a29">get_previous_sibling</a> ()</td></tr>
 
87
 
 
88
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the previous sibling for this node.  <a href="#567be4ebaffb2cd3dd2ae602c8df4a29"></a><br></td></tr>
 
89
<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">NodeList</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#bb9d4d7aad234b9b01ae7fe404915a95">get_children</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;name=<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>
 
90
 
 
91
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Obtain the list of child nodes.  <a href="#bb9d4d7aad234b9b01ae7fe404915a95"></a><br></td></tr>
 
92
<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">NodeList</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#954da427cc0c99c0b02b321a3ac9ba72">get_children</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;name=<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>
 
93
 
 
94
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Obtain the list of child nodes.  <a href="#954da427cc0c99c0b02b321a3ac9ba72"></a><br></td></tr>
 
95
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#c56c54f8006cbfb545642cbf2e96bc4a">add_child</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;name, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;ns_prefix=<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
 
96
 
 
97
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a child element to this node.  <a href="#c56c54f8006cbfb545642cbf2e96bc4a"></a><br></td></tr>
 
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#00ccfb39d9b6d82b5acd5f458c8f8ca8">remove_child</a> (<a class="el" href="classxmlpp_1_1Node.html">Node</a> *node)</td></tr>
 
99
 
 
100
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove the child node.  <a href="#00ccfb39d9b6d82b5acd5f458c8f8ca8"></a><br></td></tr>
 
101
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#ea42eae72fa7901aa1fb8f5c0fd194ec">import_node</a> (const <a class="el" href="classxmlpp_1_1Node.html">Node</a> *node, <a class="el" href="classbool.html">bool</a> recursive=true)</td></tr>
 
102
 
 
103
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Import node(s) from another document under this node, without affecting the source node.  <a href="#ea42eae72fa7901aa1fb8f5c0fd194ec"></a><br></td></tr>
 
104
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#e1671382cee2b35eac51c550365dd23d">get_path</a> () const</td></tr>
 
105
 
 
106
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the XPath of this node <dl class="return" compact><dt><b>Returns:</b></dt><dd>The XPath of the node. </dd></dl>
 
107
 <a href="#e1671382cee2b35eac51c550365dd23d"></a><br></td></tr>
 
108
<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_1vector.html">NodeSet</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#5b0538f3bcb64bae91095fa75a0ce3f2">find</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;xpath) const</td></tr>
 
109
 
 
110
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find nodes from a XPath expression.  <a href="#5b0538f3bcb64bae91095fa75a0ce3f2"></a><br></td></tr>
 
111
<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_1vector.html">NodeSet</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#4bfbd6ed354524c960d6cd425c534c7c">find</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;xpath, 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_1map.html">PrefixNsMap</a> &amp;namespaces) const </td></tr>
 
112
 
 
113
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find nodes from a XPath expression.  <a href="#4bfbd6ed354524c960d6cd425c534c7c"></a><br></td></tr>
 
114
<tr><td class="memItemLeft" nowrap align="right" valign="top">_xmlNode *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#eede250f5cf6de5f55cb7bb94084ec7c">cobj</a> ()</td></tr>
 
115
 
 
116
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access the underlying libxml implementation.  <a href="#eede250f5cf6de5f55cb7bb94084ec7c"></a><br></td></tr>
 
117
<tr><td class="memItemLeft" nowrap align="right" valign="top">const _xmlNode *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Node.html#f3810e2ae2a00375573c743364d08a0d">cobj</a> () const</td></tr>
 
118
 
 
119
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access the underlying libxml implementation.  <a href="#f3810e2ae2a00375573c743364d08a0d"></a><br></td></tr>
 
120
</table>
 
121
<hr><a name="_details"></a><h2>Detailed Description</h2>
 
122
Represents XML Nodes. 
 
123
<p>
 
124
You should never new or delete Nodes. The <a class="el" href="classxmlpp_1_1Parser.html">Parser</a> will create and manage them for you. 
 
125
<p>
 
126
<hr><h2>Member Typedef Documentation</h2>
 
127
<a class="anchor" name="7b0205c6df142d060dfca9119fadff49"></a><!-- doxytag: member="xmlpp::Node::NodeList" ref="7b0205c6df142d060dfca9119fadff49" args="" -->
 
128
<div class="memitem">
 
129
<div class="memproto">
 
130
      <table class="memname">
 
131
        <tr>
 
132
          <td class="memname">typedef <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1list.html">std::list</a>&lt;<a class="el" href="classxmlpp_1_1Node.html">Node</a>*&gt; <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1list.html">xmlpp::Node::NodeList</a>          </td>
 
133
        </tr>
 
134
      </table>
 
135
</div>
 
136
<div class="memdoc">
 
137
 
 
138
<p>
 
139
 
 
140
</div>
 
141
</div><p>
 
142
<a class="anchor" name="0175dca099d30f45ebbfd6a238420426"></a><!-- doxytag: member="xmlpp::Node::PrefixNsMap" ref="0175dca099d30f45ebbfd6a238420426" args="" -->
 
143
<div class="memitem">
 
144
<div class="memproto">
 
145
      <table class="memname">
 
146
        <tr>
 
147
          <td class="memname">typedef <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1map.html">std::map</a>&lt;<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>, <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>&gt; <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1map.html">xmlpp::Node::PrefixNsMap</a>          </td>
 
148
        </tr>
 
149
      </table>
 
150
</div>
 
151
<div class="memdoc">
 
152
 
 
153
<p>
 
154
A map of namespace prefixes to namespace URIs. 
 
155
<p>
 
156
 
 
157
</div>
 
158
</div><p>
 
159
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
160
<a class="anchor" name="215d8c01b6b01596c4ea853f99dce8e7"></a><!-- doxytag: member="xmlpp::Node::Node" ref="215d8c01b6b01596c4ea853f99dce8e7" args="(_xmlNode *node)" -->
 
161
<div class="memitem">
 
162
<div class="memproto">
 
163
      <table class="memname">
 
164
        <tr>
 
165
          <td class="memname">xmlpp::Node::Node           </td>
 
166
          <td>(</td>
 
167
          <td class="paramtype">_xmlNode *&nbsp;</td>
 
168
          <td class="paramname"> <em>node</em>          </td>
 
169
          <td>&nbsp;)&nbsp;</td>
 
170
          <td width="100%"><code> [explicit]</code></td>
 
171
        </tr>
 
172
      </table>
 
173
</div>
 
174
<div class="memdoc">
 
175
 
 
176
<p>
 
177
 
 
178
</div>
 
179
</div><p>
 
180
<a class="anchor" name="042c5de83dba6bf5d1923d76f1fb58c0"></a><!-- doxytag: member="xmlpp::Node::~Node" ref="042c5de83dba6bf5d1923d76f1fb58c0" args="()" -->
 
181
<div class="memitem">
 
182
<div class="memproto">
 
183
      <table class="memname">
 
184
        <tr>
 
185
          <td class="memname">virtual xmlpp::Node::~Node           </td>
 
186
          <td>(</td>
 
187
          <td class="paramname">          </td>
 
188
          <td>&nbsp;)&nbsp;</td>
 
189
          <td width="100%"><code> [virtual]</code></td>
 
190
        </tr>
 
191
      </table>
 
192
</div>
 
193
<div class="memdoc">
 
194
 
 
195
<p>
 
196
 
 
197
</div>
 
198
</div><p>
 
199
<hr><h2>Member Function Documentation</h2>
 
200
<a class="anchor" name="a6e2ed0fe1a5f544867ebcbb94ebdb1d"></a><!-- doxytag: member="xmlpp::Node::get_name" ref="a6e2ed0fe1a5f544867ebcbb94ebdb1d" args="() const" -->
 
201
<div class="memitem">
 
202
<div class="memproto">
 
203
      <table class="memname">
 
204
        <tr>
 
205
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Node::get_name           </td>
 
206
          <td>(</td>
 
207
          <td class="paramname">          </td>
 
208
          <td>&nbsp;)&nbsp;</td>
 
209
          <td width="100%"> const</td>
 
210
        </tr>
 
211
      </table>
 
212
</div>
 
213
<div class="memdoc">
 
214
 
 
215
<p>
 
216
Get the name of this node. 
 
217
<p>
 
218
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The node's name. </dd></dl>
 
219
 
 
220
<p>
 
221
Reimplemented in <a class="el" href="classxmlpp_1_1Attribute.html#e0d907b9ad48d16d7551c9bf5a0a5f54">xmlpp::Attribute</a>.
 
222
</div>
 
223
</div><p>
 
224
<a class="anchor" name="b5e1b1059a2af0818b1a8937fad49835"></a><!-- doxytag: member="xmlpp::Node::set_name" ref="b5e1b1059a2af0818b1a8937fad49835" args="(const Glib::ustring &amp;name)" -->
 
225
<div class="memitem">
 
226
<div class="memproto">
 
227
      <table class="memname">
 
228
        <tr>
 
229
          <td class="memname">void xmlpp::Node::set_name           </td>
 
230
          <td>(</td>
 
231
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
 
232
          <td class="paramname"> <em>name</em>          </td>
 
233
          <td>&nbsp;)&nbsp;</td>
 
234
          <td width="100%"></td>
 
235
        </tr>
 
236
      </table>
 
237
</div>
 
238
<div class="memdoc">
 
239
 
 
240
<p>
 
241
Set the name of this node. 
 
242
<p>
 
243
<dl compact><dt><b>Parameters:</b></dt><dd>
 
244
  <table border="0" cellspacing="2" cellpadding="0">
 
245
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The new name for the node. </td></tr>
 
246
  </table>
 
247
</dl>
 
248
 
 
249
</div>
 
250
</div><p>
 
251
<a class="anchor" name="4ddefaaaf3f0b550e776e9100bc23257"></a><!-- doxytag: member="xmlpp::Node::set_namespace" ref="4ddefaaaf3f0b550e776e9100bc23257" args="(const Glib::ustring &amp;ns_prefix)" -->
 
252
<div class="memitem">
 
253
<div class="memproto">
 
254
      <table class="memname">
 
255
        <tr>
 
256
          <td class="memname">void xmlpp::Node::set_namespace           </td>
 
257
          <td>(</td>
 
258
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
 
259
          <td class="paramname"> <em>ns_prefix</em>          </td>
 
260
          <td>&nbsp;)&nbsp;</td>
 
261
          <td width="100%"></td>
 
262
        </tr>
 
263
      </table>
 
264
</div>
 
265
<div class="memdoc">
 
266
 
 
267
<p>
 
268
Set the namespace prefix used by the node If no such namespace prefix has been declared then this method will throw an exception. 
 
269
<p>
 
270
<dl compact><dt><b>Parameters:</b></dt><dd>
 
271
  <table border="0" cellspacing="2" cellpadding="0">
 
272
    <tr><td valign="top"></td><td valign="top"><em>ns_prefix</em>&nbsp;</td><td>The namespace prefix. </td></tr>
 
273
  </table>
 
274
</dl>
 
275
 
 
276
</div>
 
277
</div><p>
 
278
<a class="anchor" name="5eca79de2acfb40b1709b6b54186ffd7"></a><!-- doxytag: member="xmlpp::Node::get_namespace_prefix" ref="5eca79de2acfb40b1709b6b54186ffd7" args="() const" -->
 
279
<div class="memitem">
 
280
<div class="memproto">
 
281
      <table class="memname">
 
282
        <tr>
 
283
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Node::get_namespace_prefix           </td>
 
284
          <td>(</td>
 
285
          <td class="paramname">          </td>
 
286
          <td>&nbsp;)&nbsp;</td>
 
287
          <td width="100%"> const</td>
 
288
        </tr>
 
289
      </table>
 
290
</div>
 
291
<div class="memdoc">
 
292
 
 
293
<p>
 
294
 
 
295
</div>
 
296
</div><p>
 
297
<a class="anchor" name="ba86520d67e69c57ceaef459b058ec8f"></a><!-- doxytag: member="xmlpp::Node::get_namespace_uri" ref="ba86520d67e69c57ceaef459b058ec8f" args="() const" -->
 
298
<div class="memitem">
 
299
<div class="memproto">
 
300
      <table class="memname">
 
301
        <tr>
 
302
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Node::get_namespace_uri           </td>
 
303
          <td>(</td>
 
304
          <td class="paramname">          </td>
 
305
          <td>&nbsp;)&nbsp;</td>
 
306
          <td width="100%"> const</td>
 
307
        </tr>
 
308
      </table>
 
309
</div>
 
310
<div class="memdoc">
 
311
 
 
312
<p>
 
313
 
 
314
</div>
 
315
</div><p>
 
316
<a class="anchor" name="cb268824e43544ae4c431192d0b64d6c"></a><!-- doxytag: member="xmlpp::Node::get_line" ref="cb268824e43544ae4c431192d0b64d6c" args="() const" -->
 
317
<div class="memitem">
 
318
<div class="memproto">
 
319
      <table class="memname">
 
320
        <tr>
 
321
          <td class="memname">int xmlpp::Node::get_line           </td>
 
322
          <td>(</td>
 
323
          <td class="paramname">          </td>
 
324
          <td>&nbsp;)&nbsp;</td>
 
325
          <td width="100%"> const</td>
 
326
        </tr>
 
327
      </table>
 
328
</div>
 
329
<div class="memdoc">
 
330
 
 
331
<p>
 
332
Discover at what line number this node occurs in the XML file. 
 
333
<p>
 
334
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The line number. </dd></dl>
 
335
 
 
336
</div>
 
337
</div><p>
 
338
<a class="anchor" name="12d1a5de2b8314c6588b23ddb83ac7e5"></a><!-- doxytag: member="xmlpp::Node::get_parent" ref="12d1a5de2b8314c6588b23ddb83ac7e5" args="() const" -->
 
339
<div class="memitem">
 
340
<div class="memproto">
 
341
      <table class="memname">
 
342
        <tr>
 
343
          <td class="memname">const <a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Node::get_parent           </td>
 
344
          <td>(</td>
 
345
          <td class="paramname">          </td>
 
346
          <td>&nbsp;)&nbsp;</td>
 
347
          <td width="100%"> const</td>
 
348
        </tr>
 
349
      </table>
 
350
</div>
 
351
<div class="memdoc">
 
352
 
 
353
<p>
 
354
Get the parent element for this node. 
 
355
<p>
 
356
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The parent node </dd></dl>
 
357
 
 
358
</div>
 
359
</div><p>
 
360
<a class="anchor" name="998e8cb924bd04abf72e57b68d2817f4"></a><!-- doxytag: member="xmlpp::Node::get_parent" ref="998e8cb924bd04abf72e57b68d2817f4" args="()" -->
 
361
<div class="memitem">
 
362
<div class="memproto">
 
363
      <table class="memname">
 
364
        <tr>
 
365
          <td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Node::get_parent           </td>
 
366
          <td>(</td>
 
367
          <td class="paramname">          </td>
 
368
          <td>&nbsp;)&nbsp;</td>
 
369
          <td width="100%"></td>
 
370
        </tr>
 
371
      </table>
 
372
</div>
 
373
<div class="memdoc">
 
374
 
 
375
<p>
 
376
Get the parent element for this node. 
 
377
<p>
 
378
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The parent node </dd></dl>
 
379
 
 
380
</div>
 
381
</div><p>
 
382
<a class="anchor" name="46801c7ceac58eef36b87e82b23fe171"></a><!-- doxytag: member="xmlpp::Node::get_next_sibling" ref="46801c7ceac58eef36b87e82b23fe171" args="() const" -->
 
383
<div class="memitem">
 
384
<div class="memproto">
 
385
      <table class="memname">
 
386
        <tr>
 
387
          <td class="memname">const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* xmlpp::Node::get_next_sibling           </td>
 
388
          <td>(</td>
 
389
          <td class="paramname">          </td>
 
390
          <td>&nbsp;)&nbsp;</td>
 
391
          <td width="100%"> const</td>
 
392
        </tr>
 
393
      </table>
 
394
</div>
 
395
<div class="memdoc">
 
396
 
 
397
<p>
 
398
Get the next sibling for this node. 
 
399
<p>
 
400
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The next sibling </dd></dl>
 
401
 
 
402
</div>
 
403
</div><p>
 
404
<a class="anchor" name="2576ce35a6a3dd13b49e857524360ac4"></a><!-- doxytag: member="xmlpp::Node::get_next_sibling" ref="2576ce35a6a3dd13b49e857524360ac4" args="()" -->
 
405
<div class="memitem">
 
406
<div class="memproto">
 
407
      <table class="memname">
 
408
        <tr>
 
409
          <td class="memname"><a class="el" href="classxmlpp_1_1Node.html">Node</a>* xmlpp::Node::get_next_sibling           </td>
 
410
          <td>(</td>
 
411
          <td class="paramname">          </td>
 
412
          <td>&nbsp;)&nbsp;</td>
 
413
          <td width="100%"></td>
 
414
        </tr>
 
415
      </table>
 
416
</div>
 
417
<div class="memdoc">
 
418
 
 
419
<p>
 
420
Get the next sibling for this node. 
 
421
<p>
 
422
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The next sibling </dd></dl>
 
423
 
 
424
</div>
 
425
</div><p>
 
426
<a class="anchor" name="9c2169d1a0829acbc9a9ec5df4219b0b"></a><!-- doxytag: member="xmlpp::Node::get_previous_sibling" ref="9c2169d1a0829acbc9a9ec5df4219b0b" args="() const" -->
 
427
<div class="memitem">
 
428
<div class="memproto">
 
429
      <table class="memname">
 
430
        <tr>
 
431
          <td class="memname">const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* xmlpp::Node::get_previous_sibling           </td>
 
432
          <td>(</td>
 
433
          <td class="paramname">          </td>
 
434
          <td>&nbsp;)&nbsp;</td>
 
435
          <td width="100%"> const</td>
 
436
        </tr>
 
437
      </table>
 
438
</div>
 
439
<div class="memdoc">
 
440
 
 
441
<p>
 
442
Get the previous sibling for this node. 
 
443
<p>
 
444
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The previous sibling </dd></dl>
 
445
 
 
446
</div>
 
447
</div><p>
 
448
<a class="anchor" name="567be4ebaffb2cd3dd2ae602c8df4a29"></a><!-- doxytag: member="xmlpp::Node::get_previous_sibling" ref="567be4ebaffb2cd3dd2ae602c8df4a29" args="()" -->
 
449
<div class="memitem">
 
450
<div class="memproto">
 
451
      <table class="memname">
 
452
        <tr>
 
453
          <td class="memname"><a class="el" href="classxmlpp_1_1Node.html">Node</a>* xmlpp::Node::get_previous_sibling           </td>
 
454
          <td>(</td>
 
455
          <td class="paramname">          </td>
 
456
          <td>&nbsp;)&nbsp;</td>
 
457
          <td width="100%"></td>
 
458
        </tr>
 
459
      </table>
 
460
</div>
 
461
<div class="memdoc">
 
462
 
 
463
<p>
 
464
Get the previous sibling for this node. 
 
465
<p>
 
466
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The previous sibling </dd></dl>
 
467
 
 
468
</div>
 
469
</div><p>
 
470
<a class="anchor" name="bb9d4d7aad234b9b01ae7fe404915a95"></a><!-- doxytag: member="xmlpp::Node::get_children" ref="bb9d4d7aad234b9b01ae7fe404915a95" args="(const Glib::ustring &amp;name=Glib::ustring())" -->
 
471
<div class="memitem">
 
472
<div class="memproto">
 
473
      <table class="memname">
 
474
        <tr>
 
475
          <td class="memname"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1list.html">NodeList</a> xmlpp::Node::get_children           </td>
 
476
          <td>(</td>
 
477
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
 
478
          <td class="paramname"> <em>name</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>
 
479
          <td>&nbsp;)&nbsp;</td>
 
480
          <td width="100%"></td>
 
481
        </tr>
 
482
      </table>
 
483
</div>
 
484
<div class="memdoc">
 
485
 
 
486
<p>
 
487
Obtain the list of child nodes. 
 
488
<p>
 
489
You may optionally obtain a list of only the child nodes which have a certain name. <dl compact><dt><b>Parameters:</b></dt><dd>
 
490
  <table border="0" cellspacing="2" cellpadding="0">
 
491
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The names of the child nodes to get. If you do not specigy a name, then the list will contain all nodes, regardless of their names. </td></tr>
 
492
  </table>
 
493
</dl>
 
494
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The list of child nodes. </dd></dl>
 
495
 
 
496
</div>
 
497
</div><p>
 
498
<a class="anchor" name="954da427cc0c99c0b02b321a3ac9ba72"></a><!-- doxytag: member="xmlpp::Node::get_children" ref="954da427cc0c99c0b02b321a3ac9ba72" args="(const Glib::ustring &amp;name=Glib::ustring()) const" -->
 
499
<div class="memitem">
 
500
<div class="memproto">
 
501
      <table class="memname">
 
502
        <tr>
 
503
          <td class="memname">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1list.html">NodeList</a> xmlpp::Node::get_children           </td>
 
504
          <td>(</td>
 
505
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
 
506
          <td class="paramname"> <em>name</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>
 
507
          <td>&nbsp;)&nbsp;</td>
 
508
          <td width="100%"> const</td>
 
509
        </tr>
 
510
      </table>
 
511
</div>
 
512
<div class="memdoc">
 
513
 
 
514
<p>
 
515
Obtain the list of child nodes. 
 
516
<p>
 
517
You may optionally obtain a list of only the child nodes which have a certain name. <dl compact><dt><b>Parameters:</b></dt><dd>
 
518
  <table border="0" cellspacing="2" cellpadding="0">
 
519
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The names of the child nodes to get. If you do not specigy a name, then the list will contain all nodes, regardless of their names. </td></tr>
 
520
  </table>
 
521
</dl>
 
522
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The list of child nodes. </dd></dl>
 
523
 
 
524
</div>
 
525
</div><p>
 
526
<a class="anchor" name="c56c54f8006cbfb545642cbf2e96bc4a"></a><!-- doxytag: member="xmlpp::Node::add_child" ref="c56c54f8006cbfb545642cbf2e96bc4a" args="(const Glib::ustring &amp;name, const Glib::ustring &amp;ns_prefix=Glib::ustring())" -->
 
527
<div class="memitem">
 
528
<div class="memproto">
 
529
      <table class="memname">
 
530
        <tr>
 
531
          <td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Node::add_child           </td>
 
532
          <td>(</td>
 
533
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
 
534
          <td class="paramname"> <em>name</em>, </td>
 
535
        </tr>
 
536
        <tr>
 
537
          <td class="paramkey"></td>
 
538
          <td></td>
 
539
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
 
540
          <td class="paramname"> <em>ns_prefix</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>&nbsp;</td>
 
541
        </tr>
 
542
        <tr>
 
543
          <td></td>
 
544
          <td>)</td>
 
545
          <td></td><td></td><td width="100%"></td>
 
546
        </tr>
 
547
      </table>
 
548
</div>
 
549
<div class="memdoc">
 
550
 
 
551
<p>
 
552
Add a child element to this node. 
 
553
<p>
 
554
<dl compact><dt><b>Parameters:</b></dt><dd>
 
555
  <table border="0" cellspacing="2" cellpadding="0">
 
556
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The new node name </td></tr>
 
557
    <tr><td valign="top"></td><td valign="top"><em>ns_prefix</em>&nbsp;</td><td>The namespace prefix. If the prefix has not been declared then this method will throw an exception. </td></tr>
 
558
  </table>
 
559
</dl>
 
560
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The newly-created element </dd></dl>
 
561
 
 
562
</div>
 
563
</div><p>
 
564
<a class="anchor" name="00ccfb39d9b6d82b5acd5f458c8f8ca8"></a><!-- doxytag: member="xmlpp::Node::remove_child" ref="00ccfb39d9b6d82b5acd5f458c8f8ca8" args="(Node *node)" -->
 
565
<div class="memitem">
 
566
<div class="memproto">
 
567
      <table class="memname">
 
568
        <tr>
 
569
          <td class="memname">void xmlpp::Node::remove_child           </td>
 
570
          <td>(</td>
 
571
          <td class="paramtype"><a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td>
 
572
          <td class="paramname"> <em>node</em>          </td>
 
573
          <td>&nbsp;)&nbsp;</td>
 
574
          <td width="100%"></td>
 
575
        </tr>
 
576
      </table>
 
577
</div>
 
578
<div class="memdoc">
 
579
 
 
580
<p>
 
581
Remove the child node. 
 
582
<p>
 
583
<dl compact><dt><b>Parameters:</b></dt><dd>
 
584
  <table border="0" cellspacing="2" cellpadding="0">
 
585
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>The child node to remove. This <a class="el" href="classxmlpp_1_1Node.html">Node</a> will be deleted and therefore unusable after calling this method. </td></tr>
 
586
  </table>
 
587
</dl>
 
588
 
 
589
</div>
 
590
</div><p>
 
591
<a class="anchor" name="ea42eae72fa7901aa1fb8f5c0fd194ec"></a><!-- doxytag: member="xmlpp::Node::import_node" ref="ea42eae72fa7901aa1fb8f5c0fd194ec" args="(const Node *node, bool recursive=true)" -->
 
592
<div class="memitem">
 
593
<div class="memproto">
 
594
      <table class="memname">
 
595
        <tr>
 
596
          <td class="memname"><a class="el" href="classxmlpp_1_1Node.html">Node</a>* xmlpp::Node::import_node           </td>
 
597
          <td>(</td>
 
598
          <td class="paramtype">const <a class="el" href="classxmlpp_1_1Node.html">Node</a> *&nbsp;</td>
 
599
          <td class="paramname"> <em>node</em>, </td>
 
600
        </tr>
 
601
        <tr>
 
602
          <td class="paramkey"></td>
 
603
          <td></td>
 
604
          <td class="paramtype"><a class="el" href="classbool.html">bool</a>&nbsp;</td>
 
605
          <td class="paramname"> <em>recursive</em> = <code>true</code></td><td>&nbsp;</td>
 
606
        </tr>
 
607
        <tr>
 
608
          <td></td>
 
609
          <td>)</td>
 
610
          <td></td><td></td><td width="100%"></td>
 
611
        </tr>
 
612
      </table>
 
613
</div>
 
614
<div class="memdoc">
 
615
 
 
616
<p>
 
617
Import node(s) from another document under this node, without affecting the source node. 
 
618
<p>
 
619
<dl compact><dt><b>Parameters:</b></dt><dd>
 
620
  <table border="0" cellspacing="2" cellpadding="0">
 
621
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>The node to copy and insert under the current node. </td></tr>
 
622
    <tr><td valign="top"></td><td valign="top"><em>recursive</em>&nbsp;</td><td>Whether to import the child nodes also. Defaults to true. </td></tr>
 
623
  </table>
 
624
</dl>
 
625
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The newly-created node. </dd></dl>
 
626
 
 
627
</div>
 
628
</div><p>
 
629
<a class="anchor" name="e1671382cee2b35eac51c550365dd23d"></a><!-- doxytag: member="xmlpp::Node::get_path" ref="e1671382cee2b35eac51c550365dd23d" args="() const" -->
 
630
<div class="memitem">
 
631
<div class="memproto">
 
632
      <table class="memname">
 
633
        <tr>
 
634
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Node::get_path           </td>
 
635
          <td>(</td>
 
636
          <td class="paramname">          </td>
 
637
          <td>&nbsp;)&nbsp;</td>
 
638
          <td width="100%"> const</td>
 
639
        </tr>
 
640
      </table>
 
641
</div>
 
642
<div class="memdoc">
 
643
 
 
644
<p>
 
645
Return the XPath of this node <dl class="return" compact><dt><b>Returns:</b></dt><dd>The XPath of the node. </dd></dl>
 
646
 
 
647
<p>
 
648
 
 
649
</div>
 
650
</div><p>
 
651
<a class="anchor" name="5b0538f3bcb64bae91095fa75a0ce3f2"></a><!-- doxytag: member="xmlpp::Node::find" ref="5b0538f3bcb64bae91095fa75a0ce3f2" args="(const Glib::ustring &amp;xpath) const" -->
 
652
<div class="memitem">
 
653
<div class="memproto">
 
654
      <table class="memname">
 
655
        <tr>
 
656
          <td class="memname"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1vector.html">NodeSet</a> xmlpp::Node::find           </td>
 
657
          <td>(</td>
 
658
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
 
659
          <td class="paramname"> <em>xpath</em>          </td>
 
660
          <td>&nbsp;)&nbsp;</td>
 
661
          <td width="100%"> const</td>
 
662
        </tr>
 
663
      </table>
 
664
</div>
 
665
<div class="memdoc">
 
666
 
 
667
<p>
 
668
Find nodes from a XPath expression. 
 
669
<p>
 
670
<dl compact><dt><b>Parameters:</b></dt><dd>
 
671
  <table border="0" cellspacing="2" cellpadding="0">
 
672
    <tr><td valign="top"></td><td valign="top"><em>xpath</em>&nbsp;</td><td>The XPath of the nodes. </td></tr>
 
673
  </table>
 
674
</dl>
 
675
 
 
676
</div>
 
677
</div><p>
 
678
<a class="anchor" name="4bfbd6ed354524c960d6cd425c534c7c"></a><!-- doxytag: member="xmlpp::Node::find" ref="4bfbd6ed354524c960d6cd425c534c7c" args="(const Glib::ustring &amp;xpath, const PrefixNsMap &amp;namespaces) const " -->
 
679
<div class="memitem">
 
680
<div class="memproto">
 
681
      <table class="memname">
 
682
        <tr>
 
683
          <td class="memname"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1vector.html">NodeSet</a> xmlpp::Node::find           </td>
 
684
          <td>(</td>
 
685
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
 
686
          <td class="paramname"> <em>xpath</em>, </td>
 
687
        </tr>
 
688
        <tr>
 
689
          <td class="paramkey"></td>
 
690
          <td></td>
 
691
          <td class="paramtype">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_1map.html">PrefixNsMap</a> &amp;&nbsp;</td>
 
692
          <td class="paramname"> <em>namespaces</em></td><td>&nbsp;</td>
 
693
        </tr>
 
694
        <tr>
 
695
          <td></td>
 
696
          <td>)</td>
 
697
          <td></td><td></td><td width="100%"> const</td>
 
698
        </tr>
 
699
      </table>
 
700
</div>
 
701
<div class="memdoc">
 
702
 
 
703
<p>
 
704
Find nodes from a XPath expression. 
 
705
<p>
 
706
<dl compact><dt><b>Parameters:</b></dt><dd>
 
707
  <table border="0" cellspacing="2" cellpadding="0">
 
708
    <tr><td valign="top"></td><td valign="top"><em>xpath</em>&nbsp;</td><td>The XPath of the nodes. </td></tr>
 
709
    <tr><td valign="top"></td><td valign="top"><em>namespaces</em>&nbsp;</td><td>A map of namespace prefixes to namespace URIs to be used while finding. </td></tr>
 
710
  </table>
 
711
</dl>
 
712
 
 
713
</div>
 
714
</div><p>
 
715
<a class="anchor" name="eede250f5cf6de5f55cb7bb94084ec7c"></a><!-- doxytag: member="xmlpp::Node::cobj" ref="eede250f5cf6de5f55cb7bb94084ec7c" args="()" -->
 
716
<div class="memitem">
 
717
<div class="memproto">
 
718
      <table class="memname">
 
719
        <tr>
 
720
          <td class="memname">_xmlNode* xmlpp::Node::cobj           </td>
 
721
          <td>(</td>
 
722
          <td class="paramname">          </td>
 
723
          <td>&nbsp;)&nbsp;</td>
 
724
          <td width="100%"></td>
 
725
        </tr>
 
726
      </table>
 
727
</div>
 
728
<div class="memdoc">
 
729
 
 
730
<p>
 
731
Access the underlying libxml implementation. 
 
732
<p>
 
733
 
 
734
<p>
 
735
Reimplemented in <a class="el" href="classxmlpp_1_1Attribute.html#1bdce49b8e5f118373732b4a3e14b842">xmlpp::Attribute</a>.
 
736
</div>
 
737
</div><p>
 
738
<a class="anchor" name="f3810e2ae2a00375573c743364d08a0d"></a><!-- doxytag: member="xmlpp::Node::cobj" ref="f3810e2ae2a00375573c743364d08a0d" args="() const" -->
 
739
<div class="memitem">
 
740
<div class="memproto">
 
741
      <table class="memname">
 
742
        <tr>
 
743
          <td class="memname">const _xmlNode* xmlpp::Node::cobj           </td>
 
744
          <td>(</td>
 
745
          <td class="paramname">          </td>
 
746
          <td>&nbsp;)&nbsp;</td>
 
747
          <td width="100%"> const</td>
 
748
        </tr>
 
749
      </table>
 
750
</div>
 
751
<div class="memdoc">
 
752
 
 
753
<p>
 
754
Access the underlying libxml implementation. 
 
755
<p>
 
756
 
 
757
<p>
 
758
Reimplemented in <a class="el" href="classxmlpp_1_1Attribute.html#b5aebc61d7fe56a96fef763d7a58b72d">xmlpp::Attribute</a>.
 
759
</div>
 
760
</div><p>
 
761
<hr>The documentation for this class was generated from the following file:<ul>
 
762
<li><a class="el" href="node_8h.html">node.h</a></ul>
 
763
<hr size="1"><address style="align: right;"><small>Generated on Tue Sep 18 10:36:22 2007 for libxml++ by&nbsp;
 
764
<a href="http://www.doxygen.org/index.html">
 
765
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
 
766
</body>
 
767
</html>