File: Poco.XML.Node.html

package info (click to toggle)
poco-doc 1.3.6-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 10,076 kB
  • ctags: 9,611
  • sloc: makefile: 31
file content (238 lines) | stat: -rw-r--r-- 27,382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!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>
<title>Class Poco::XML::Node</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.XML.html" class="namespace">Poco::XML</a></h1>
<h1 class="symbol">class Node</h1>
</div>
<div class="body">
<p>
<b>Library:</b> XML<br />
<b>Package:</b> DOM<br />
<b>Header:</b> Poco/DOM/Node.h</p>
<h2>Description</h2>
<div class="description">
<p>The <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> interface is the primary datatype for the entire <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> Object Model. It represents a single node in the document tree. While all objects implementing the <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> interface expose methods for dealing with children, not all objects implementing the <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> interface may have children. For example, <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a> nodes may not have children, and adding children to such nodes results in a <a href="Poco.XML.DOMException.html" title="class Poco::XML::DOMException">DOMException</a> being raised. </p>
<p>The attributes nodeName, nodeValue and attributes are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific nodeType (e.g., nodeValue for an <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> or attributes for a <a href="Poco.XML.Comment.html" title="class Poco::XML::Comment">Comment</a>), this returns null. Note that the specialized interfaces may contain additional and more convenient mechanisms to get and set the relevant information. </p>
<p>This implementation differs in some ways from the W3C DOM recommendations. For example, the DOM specifies that some methods can return null strings. Instead of null strings, this implementation always returns empty strings. </p>
</div>
<h2>Inheritance</h2>
<p><b>Direct Base Classes: </b><a href="Poco.XML.EventTarget.html" title="class Poco::XML::EventTarget">EventTarget</a></p>
<p><b>All Base Classes: </b><a href="Poco.XML.DOMObject.html" title="class Poco::XML::DOMObject">DOMObject</a>, <a href="Poco.XML.EventTarget.html" title="class Poco::XML::EventTarget">EventTarget</a></p>
<p><b>Known Derived Classes: </b><a href="Poco.XML.AbstractContainerNode.html" title="class Poco::XML::AbstractContainerNode">AbstractContainerNode</a>, <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a>, <a href="Poco.XML.AbstractNode.html" title="class Poco::XML::AbstractNode">AbstractNode</a>, <a href="Poco.XML.CDATASection.html" title="class Poco::XML::CDATASection">CDATASection</a>, <a href="Poco.XML.Comment.html" title="class Poco::XML::Comment">Comment</a>, <a href="Poco.XML.CharacterData.html" title="class Poco::XML::CharacterData">CharacterData</a>, <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a>, <a href="Poco.XML.DocumentType.html" title="class Poco::XML::DocumentType">DocumentType</a>, <a href="Poco.XML.DocumentFragment.html" title="class Poco::XML::DocumentFragment">DocumentFragment</a>, <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a>, <a href="Poco.XML.Entity.html" title="class Poco::XML::Entity">Entity</a>, <a href="Poco.XML.EntityReference.html" title="class Poco::XML::EntityReference">EntityReference</a>, <a href="Poco.XML.ProcessingInstruction.html" title="class Poco::XML::ProcessingInstruction">ProcessingInstruction</a>, <a href="Poco.XML.Notation.html" title="class Poco::XML::Notation">Notation</a>, <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a></p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.XML.Node.html#18521" title="Poco::XML::Node::appendChild()">appendChild</a>, <a href="Poco.XML.Node.html#18511" title="Poco::XML::Node::attributes()">attributes</a>, <a href="Poco.XML.Node.html#18506" title="Poco::XML::Node::childNodes()">childNodes</a>, <a href="Poco.XML.Node.html#18524" title="Poco::XML::Node::cloneNode()">cloneNode</a>, <a href="Poco.XML.Node.html#18507" title="Poco::XML::Node::firstChild()">firstChild</a>, <a href="Poco.XML.Node.html#18501" title="Poco::XML::Node::getNodeValue()">getNodeValue</a>, <a href="Poco.XML.Node.html#18533" title="Poco::XML::Node::hasAttributes()">hasAttributes</a>, <a href="Poco.XML.Node.html#18523" title="Poco::XML::Node::hasChildNodes()">hasChildNodes</a>, <a href="Poco.XML.Node.html#18534" title="Poco::XML::Node::innerText()">innerText</a>, <a href="Poco.XML.Node.html#18513" title="Poco::XML::Node::insertBefore()">insertBefore</a>, <a href="Poco.XML.Node.html#18527" title="Poco::XML::Node::isSupported()">isSupported</a>, <a href="Poco.XML.Node.html#18508" title="Poco::XML::Node::lastChild()">lastChild</a>, <a href="Poco.XML.Node.html#18532" title="Poco::XML::Node::localName()">localName</a>, <a href="Poco.XML.Node.html#18530" title="Poco::XML::Node::namespaceURI()">namespaceURI</a>, <a href="Poco.XML.Node.html#18510" title="Poco::XML::Node::nextSibling()">nextSibling</a>, <a href="Poco.XML.Node.html#18499" title="Poco::XML::Node::nodeName()">nodeName</a>, <a href="Poco.XML.Node.html#18504" title="Poco::XML::Node::nodeType()">nodeType</a>, <a href="Poco.XML.Node.html#18500" title="Poco::XML::Node::nodeValue()">nodeValue</a>, <a href="Poco.XML.Node.html#18526" title="Poco::XML::Node::normalize()">normalize</a>, <a href="Poco.XML.Node.html#18512" title="Poco::XML::Node::ownerDocument()">ownerDocument</a>, <a href="Poco.XML.Node.html#18505" title="Poco::XML::Node::parentNode()">parentNode</a>, <a href="Poco.XML.Node.html#18531" title="Poco::XML::Node::prefix()">prefix</a>, <a href="Poco.XML.Node.html#18509" title="Poco::XML::Node::previousSibling()">previousSibling</a>, <a href="Poco.XML.Node.html#18519" title="Poco::XML::Node::removeChild()">removeChild</a>, <a href="Poco.XML.Node.html#18516" title="Poco::XML::Node::replaceChild()">replaceChild</a>, <a href="Poco.XML.Node.html#18502" title="Poco::XML::Node::setNodeValue()">setNodeValue</a></p>
<p><b>Inherited Functions: </b><a href="Poco.XML.EventTarget.html#18402" title="Poco::XML::EventTarget::addEventListener()">addEventListener</a>, <a href="Poco.XML.DOMObject.html#17883" title="Poco::XML::DOMObject::autoRelease()">autoRelease</a>, <a href="Poco.XML.EventTarget.html#18410" title="Poco::XML::EventTarget::dispatchEvent()">dispatchEvent</a>, <a href="Poco.XML.DOMObject.html#17881" title="Poco::XML::DOMObject::duplicate()">duplicate</a>, <a href="Poco.XML.DOMObject.html#17882" title="Poco::XML::DOMObject::release()">release</a>, <a href="Poco.XML.EventTarget.html#18406" title="Poco::XML::EventTarget::removeEventListener()">removeEventListener</a></p>
<h2>Enumerations</h2>
<h3><i>Anonymous</i></h3>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="18487">ELEMENT_NODE</a> = 1</p>
<div class="description">
<p>The node is an <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a>. </p>
</div>
<p class="decl"><a name="18488">ATTRIBUTE_NODE</a></p>
<div class="description">
<p>The node is an <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a>. </p>
</div>
<p class="decl"><a name="18489">TEXT_NODE</a></p>
<div class="description">
<p>The node is a <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a> node. </p>
</div>
<p class="decl"><a name="18490">CDATA_SECTION_NODE</a></p>
<div class="description">
<p>The node is a <a href="Poco.XML.CDATASection.html" title="class Poco::XML::CDATASection">CDATASection</a>. </p>
</div>
<p class="decl"><a name="18491">ENTITY_REFERENCE_NODE</a></p>
<div class="description">
<p>The node is an <a href="Poco.XML.EntityReference.html" title="class Poco::XML::EntityReference">EntityReference</a>. </p>
</div>
<p class="decl"><a name="18492">ENTITY_NODE</a></p>
<div class="description">
<p>The node is an <a href="Poco.XML.Entity.html" title="class Poco::XML::Entity">Entity</a>. </p>
</div>
<p class="decl"><a name="18493">PROCESSING_INSTRUCTION_NODE</a></p>
<div class="description">
<p>The node is a <a href="Poco.XML.ProcessingInstruction.html" title="class Poco::XML::ProcessingInstruction">ProcessingInstruction</a>. </p>
</div>
<p class="decl"><a name="18494">COMMENT_NODE</a></p>
<div class="description">
<p>The node is a <a href="Poco.XML.Comment.html" title="class Poco::XML::Comment">Comment</a>. </p>
</div>
<p class="decl"><a name="18495">DOCUMENT_NODE</a></p>
<div class="description">
<p>The node is a <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a>. </p>
</div>
<p class="decl"><a name="18496">DOCUMENT_TYPE_NODE</a></p>
<div class="description">
<p>The node is a <a href="Poco.XML.DocumentType.html" title="class Poco::XML::DocumentType">DocumentType</a>. </p>
</div>
<p class="decl"><a name="18497">DOCUMENT_FRAGMENT_NODE</a></p>
<div class="description">
<p>The node is a <a href="Poco.XML.DocumentFragment.html" title="class Poco::XML::DocumentFragment">DocumentFragment</a>. </p>
</div>
<p class="decl"><a name="18498">NOTATION_NODE</a></p>
<div class="description">
<p>The node is a <a href="Poco.XML.Notation.html" title="class Poco::XML::Notation">Notation</a>. </p>
</div>
<h2>Destructor</h2>
<h3><a name="18535">~Node</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual ~<a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a>();</p>
<div class="description">
<p></p>
</div>
<h2>Member Functions</h2>
<h3><a name="18521">appendChild</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * appendChild(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * newChild<br />) = 0;</p>
<div class="description">
<p>Appends the node newChild to the end of the list of children of this node. If newChild is already in the tree, it is first removed. </p>
</div>
<h3><a name="18511">attributes</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.NamedNodeMap.html" title="class Poco::XML::NamedNodeMap">NamedNodeMap</a> * attributes() const = 0;</p>
<div class="description">
<p>Returns a <a href="Poco.XML.NamedNodeMap.html" title="class Poco::XML::NamedNodeMap">NamedNodeMap</a> containing the attributes of this node (if it is an <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a>) or null otherwise. </p>
<p>The returned <a href="Poco.XML.NamedNodeMap.html" title="class Poco::XML::NamedNodeMap">NamedNodeMap</a> must be released with a call to release() when no longer needed. </p>
</div>
<h3><a name="18506">childNodes</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> * childNodes() const = 0;</p>
<div class="description">
<p>Returns a <a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> containing all children of this node. </p>
<p>The returned <a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> must be released with a call to release() when no longer needed. </p>
</div>
<h3><a name="18524">cloneNode</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * cloneNode(<br />&nbsp;&nbsp;&nbsp;&nbsp;bool deep<br />) const = 0;</p>
<div class="description">
<p>Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent; (parentNode is null.). Cloning an <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> copies all attributes and their values, including those generated by the <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> processor to represent defaulted attributes, but this method does not copy any text it contains unless it is a deep clone, since the text is contained in a child <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a> node. Cloning an Attribute directly, as opposed to be cloned as part of an <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> cloning operation, returns a specified attribute (specified is true). Cloning any other type of node simply returns a copy of this node. Note that cloning an immutable subtree results in a mutable copy, but the children of an <a href="Poco.XML.EntityReference.html" title="class Poco::XML::EntityReference">EntityReference</a> clone are readonly. In addition, clones of unspecified <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> nodes are specified. And, cloning <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a>, <a href="Poco.XML.DocumentType.html" title="class Poco::XML::DocumentType">DocumentType</a>, <a href="Poco.XML.Entity.html" title="class Poco::XML::Entity">Entity</a>, and <a href="Poco.XML.Notation.html" title="class Poco::XML::Notation">Notation</a> nodes is implementation dependent. </p>
</div>
<h3><a name="18507">firstChild</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * firstChild() const = 0;</p>
<div class="description">
<p>Returns the first child of this node. If there is no such node, this returns null. </p>
</div>
<h3><a name="18501">getNodeValue</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; getNodeValue() const = 0;</p>
<div class="description">
<p>Returns the value of this node, depending on its type. </p>
</div>
<h3><a name="18533">hasAttributes</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual bool hasAttributes() const = 0;</p>
<div class="description">
<p>Returns whether this node (if it is an element) has any attributes. </p>
</div>
<h3><a name="18523">hasChildNodes</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual bool hasChildNodes() const = 0;</p>
<div class="description">
<p>This is a convenience method to allow easy determination of whether a  node has any children. Returns true if the node has any children, false otherwise. </p>
</div>
<h3><a name="18534">innerText</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> innerText() const = 0;</p>
<div class="description">
<p>Returns a string containing the concatenated values of the node and all its child nodes.  </p>
<p>This method is not part of the W3C <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> Object Model. </p>
</div>
<h3><a name="18513">insertBefore</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * insertBefore(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * newChild,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * refChild<br />) = 0;</p>
<div class="description">
<p>Inserts the node newChild before the existing child node refChild. </p>
<p>If refChild is null, insert newChild at the end of the list of children. If newChild is a <a href="Poco.XML.DocumentFragment.html" title="class Poco::XML::DocumentFragment">DocumentFragment</a> object, all of its children are inserted in the same order, before refChild. If the newChild is already in the tree, it is first removed. </p>
</div>
<h3><a name="18527">isSupported</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual bool isSupported(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; feature,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; version<br />) const = 0;</p>
<div class="description">
<p>Tests whether the DOM implementation implements a specific  feature and that feature is supported by this node. </p>
</div>
<h3><a name="18508">lastChild</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * lastChild() const = 0;</p>
<div class="description">
<p>Returns the last child of this node. If there is no such node, this returns null. </p>
</div>
<h3><a name="18532">localName</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; localName() const = 0;</p>
<div class="description">
<p>Returns the local name of the node. </p>
</div>
<h3><a name="18530">namespaceURI</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; namespaceURI() const = 0;</p>
<div class="description">
<p>Returns the namespace <a href="Poco.URI.html" title="class Poco::URI">URI</a> of the node. This is not a computed value that is the result of a namespace lookup based on an  examination of the namespace declarations in scope. It is merely the namespace <a href="Poco.URI.html" title="class Poco::URI">URI</a>  given at creation time. </p>
<p>For nodes of any type other than <a href="Poco.XML.Node.html#18487" title="Poco::XML::Node::ELEMENT_NODE">ELEMENT_NODE</a> and <a href="Poco.XML.Node.html#18488" title="Poco::XML::Node::ATTRIBUTE_NODE">ATTRIBUTE_NODE</a> and nodes created with a  DOM Level 1 method, such as createElement from the <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> interface, this is always the empty string. </p>
</div>
<h3><a name="18510">nextSibling</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * nextSibling() const = 0;</p>
<div class="description">
<p>Returns the node immediately following this node. If there is no such node, this returns null. </p>
</div>
<h3><a name="18499">nodeName</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; nodeName() const = 0;</p>
<div class="description">
<p>Returns the name of this node, depending on its type. </p>
</div>
<h3><a name="18504">nodeType</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual unsigned short nodeType() const = 0;</p>
<div class="description">
<p>Returns a code representing the type of the underlying object. </p>
</div>
<h3><a name="18500">nodeValue</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; nodeValue() const;</p>
<div class="description">
<p>Returns the value of this node, depending on its type. </p>
</div>
<h3><a name="18526">normalize</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual void normalize() = 0;</p>
<div class="description">
<p>Puts all <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a> nodes in the full depth of the sub-tree underneath this <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a>, including attribute nodes, into a &quot;normal&quot; form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a> nodes, i.e., there are neither adjacent <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a> nodes nor empty <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a> nodes. This can be used to ensure that the DOM view of a document is the same as if it were saved and re-loaded, and is useful when operations (such as XPointer lookups) that depend on a particular document tree structure are to be used. </p>
<p>Note: In cases where the document contains CDATASections, the normalize operation alone may not be sufficient, since XPointers do not differentiate between <a href="Poco.XML.Text.html" title="class Poco::XML::Text">Text</a> nodes and <a href="Poco.XML.CDATASection.html" title="class Poco::XML::CDATASection">CDATASection</a> nodes. </p>
</div>
<h3><a name="18512">ownerDocument</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> * ownerDocument() const = 0;</p>
<div class="description">
<p>Returns the <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> object associated with this node. This is also the <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> object used to create new nodes. When this node is a <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a>, this is null. </p>
</div>
<h3><a name="18505">parentNode</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * parentNode() const = 0;</p>
<div class="description">
<p>The parent of this node. All nodes, except <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a>, <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a>, <a href="Poco.XML.DocumentFragment.html" title="class Poco::XML::DocumentFragment">DocumentFragment</a>, <a href="Poco.XML.Entity.html" title="class Poco::XML::Entity">Entity</a>, and <a href="Poco.XML.Notation.html" title="class Poco::XML::Notation">Notation</a> may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null. </p>
</div>
<h3><a name="18531">prefix</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> prefix() const = 0;</p>
<div class="description">
<p>Returns the namespace prefix from the qualified name of the node. </p>
</div>
<h3><a name="18509">previousSibling</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * previousSibling() const = 0;</p>
<div class="description">
<p>Returns the node immediately preceding this node. If there is no such node, this returns null. </p>
</div>
<h3><a name="18519">removeChild</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * removeChild(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * oldChild<br />) = 0;</p>
<div class="description">
<p>Removes the child node indicated by oldChild from the list of children and returns it.  </p>
</div>
<h3><a name="18516">replaceChild</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * replaceChild(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * newChild,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * oldChild<br />) = 0;</p>
<div class="description">
<p>Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node. If newChild is a <a href="Poco.XML.DocumentFragment.html" title="class Poco::XML::DocumentFragment">DocumentFragment</a> object, oldChild is replaced by all of the <a href="Poco.XML.DocumentFragment.html" title="class Poco::XML::DocumentFragment">DocumentFragment</a> children, which are inserted in the same order. If the newChild is already in the tree, it is first removed. </p>
</div>
<h3><a name="18502">setNodeValue</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual void setNodeValue(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; value<br />) = 0;</p>
<div class="description">
<p>Sets the value of this node. Throws an exception if the node is read-only. </p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>