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 239 240 241 242 243 244 245 246 247 248 249 250 251 252
|
<!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::Element</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 Element</h1>
</div>
<div class="body">
<p>
<b>Library:</b> XML<br />
<b>Package:</b> DOM<br />
<b>Header:</b> Poco/DOM/Element.h</p>
<h2>Description</h2>
<div class="description">
<p>The <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> interface represents an element in an <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document. Elements may have attributes associated with them; since the <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> interface inherits from <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a>, the generic <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> interface attribute attributes may be used to retrieve the set of all attributes for an element. There are methods on the <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> interface to retrieve either an <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> object by name or an attribute value by name. In <a href="Poco.XML.html" title="namespace Poco::XML">XML</a>, where an attribute value may contain entity references, an <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> object should be retrieved to examine the possibly fairly complex sub-tree representing the attribute value. </p>
</div>
<h2>Inheritance</h2>
<p><b>Direct Base Classes: </b><a href="Poco.XML.AbstractContainerNode.html" title="class Poco::XML::AbstractContainerNode">AbstractContainerNode</a></p>
<p><b>All Base Classes: </b><a href="Poco.XML.AbstractContainerNode.html" title="class Poco::XML::AbstractContainerNode">AbstractContainerNode</a>, <a href="Poco.XML.AbstractNode.html" title="class Poco::XML::AbstractNode">AbstractNode</a>, <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>, <a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a></p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.XML.Element.html#18175" title="Poco::XML::Element::addAttributeNodeNP()">addAttributeNodeNP</a>, <a href="Poco.XML.Element.html#18224" title="Poco::XML::Element::attributes()">attributes</a>, <a href="Poco.XML.Element.html#18235" title="Poco::XML::Element::copyNode()">copyNode</a>, <a href="Poco.XML.Element.html#18239" title="Poco::XML::Element::dispatchNodeInsertedIntoDocument()">dispatchNodeInsertedIntoDocument</a>, <a href="Poco.XML.Element.html#18238" title="Poco::XML::Element::dispatchNodeRemovedFromDocument()">dispatchNodeRemovedFromDocument</a>, <a href="Poco.XML.Element.html#18164" title="Poco::XML::Element::getAttribute()">getAttribute</a>, <a href="Poco.XML.Element.html#18183" title="Poco::XML::Element::getAttributeNS()">getAttributeNS</a>, <a href="Poco.XML.Element.html#18171" title="Poco::XML::Element::getAttributeNode()">getAttributeNode</a>, <a href="Poco.XML.Element.html#18193" title="Poco::XML::Element::getAttributeNodeNS()">getAttributeNodeNS</a>, <a href="Poco.XML.Element.html#18211" title="Poco::XML::Element::getChildElement()">getChildElement</a>, <a href="Poco.XML.Element.html#18213" title="Poco::XML::Element::getChildElementNS()">getChildElementNS</a>, <a href="Poco.XML.Element.html#18216" title="Poco::XML::Element::getElementById()">getElementById</a>, <a href="Poco.XML.Element.html#18219" title="Poco::XML::Element::getElementByIdNS()">getElementByIdNS</a>, <a href="Poco.XML.Element.html#18180" title="Poco::XML::Element::getElementsByTagName()">getElementsByTagName</a>, <a href="Poco.XML.Element.html#18203" title="Poco::XML::Element::getElementsByTagNameNS()">getElementsByTagNameNS</a>, <a href="Poco.XML.Element.html#18198" title="Poco::XML::Element::hasAttribute()">hasAttribute</a>, <a href="Poco.XML.Element.html#18200" title="Poco::XML::Element::hasAttributeNS()">hasAttributeNS</a>, <a href="Poco.XML.Element.html#18209" title="Poco::XML::Element::hasAttributes()">hasAttributes</a>, <a href="Poco.XML.Element.html#18210" title="Poco::XML::Element::innerText()">innerText</a>, <a href="Poco.XML.Element.html#18208" title="Poco::XML::Element::localName()">localName</a>, <a href="Poco.XML.Element.html#18206" title="Poco::XML::Element::namespaceURI()">namespaceURI</a>, <a href="Poco.XML.Element.html#18223" title="Poco::XML::Element::nodeName()">nodeName</a>, <a href="Poco.XML.Element.html#18225" title="Poco::XML::Element::nodeType()">nodeType</a>, <a href="Poco.XML.Element.html#18182" title="Poco::XML::Element::normalize()">normalize</a>, <a href="Poco.XML.Element.html#18207" title="Poco::XML::Element::prefix()">prefix</a>, <a href="Poco.XML.Element.html#18169" title="Poco::XML::Element::removeAttribute()">removeAttribute</a>, <a href="Poco.XML.Element.html#18190" title="Poco::XML::Element::removeAttributeNS()">removeAttributeNS</a>, <a href="Poco.XML.Element.html#18178" title="Poco::XML::Element::removeAttributeNode()">removeAttributeNode</a>, <a href="Poco.XML.Element.html#18166" title="Poco::XML::Element::setAttribute()">setAttribute</a>, <a href="Poco.XML.Element.html#18186" title="Poco::XML::Element::setAttributeNS()">setAttributeNS</a>, <a href="Poco.XML.Element.html#18173" title="Poco::XML::Element::setAttributeNode()">setAttributeNode</a>, <a href="Poco.XML.Element.html#18196" title="Poco::XML::Element::setAttributeNodeNS()">setAttributeNodeNS</a>, <a href="Poco.XML.Element.html#18163" title="Poco::XML::Element::tagName()">tagName</a></p>
<p><b>Inherited Functions: </b><a href="Poco.XML.AbstractNode.html#17561" title="Poco::XML::AbstractNode::addEventListener()">addEventListener</a>, <a href="Poco.XML.AbstractContainerNode.html#17514" title="Poco::XML::AbstractContainerNode::appendChild()">appendChild</a>, <a href="Poco.XML.AbstractNode.html#17538" title="Poco::XML::AbstractNode::attributes()">attributes</a>, <a href="Poco.XML.AbstractNode.html#17572" title="Poco::XML::AbstractNode::autoRelease()">autoRelease</a>, <a href="Poco.XML.AbstractNode.html#17586" title="Poco::XML::AbstractNode::bubbleEvent()">bubbleEvent</a>, <a href="Poco.XML.AbstractNode.html#17584" title="Poco::XML::AbstractNode::captureEvent()">captureEvent</a>, <a href="Poco.XML.AbstractNode.html#17533" title="Poco::XML::AbstractNode::childNodes()">childNodes</a>, <a href="Poco.XML.AbstractNode.html#17551" title="Poco::XML::AbstractNode::cloneNode()">cloneNode</a>, <a href="Poco.XML.AbstractNode.html#17579" title="Poco::XML::AbstractNode::copyNode()">copyNode</a>, <a href="Poco.XML.AbstractNode.html#17593" title="Poco::XML::AbstractNode::dispatchAttrModified()">dispatchAttrModified</a>, <a href="Poco.XML.AbstractNode.html#17598" title="Poco::XML::AbstractNode::dispatchCharacterDataModified()">dispatchCharacterDataModified</a>, <a href="Poco.XML.AbstractNode.html#17569" title="Poco::XML::AbstractNode::dispatchEvent()">dispatchEvent</a>, <a href="Poco.XML.AbstractNode.html#17589" title="Poco::XML::AbstractNode::dispatchNodeInserted()">dispatchNodeInserted</a>, <a href="Poco.XML.AbstractContainerNode.html#17525" title="Poco::XML::AbstractContainerNode::dispatchNodeInsertedIntoDocument()">dispatchNodeInsertedIntoDocument</a>, <a href="Poco.XML.AbstractNode.html#17590" title="Poco::XML::AbstractNode::dispatchNodeRemoved()">dispatchNodeRemoved</a>, <a href="Poco.XML.AbstractContainerNode.html#17524" title="Poco::XML::AbstractContainerNode::dispatchNodeRemovedFromDocument()">dispatchNodeRemovedFromDocument</a>, <a href="Poco.XML.AbstractNode.html#17588" title="Poco::XML::AbstractNode::dispatchSubtreeModified()">dispatchSubtreeModified</a>, <a href="Poco.XML.DOMObject.html#17881" title="Poco::XML::DOMObject::duplicate()">duplicate</a>, <a href="Poco.XML.AbstractNode.html#17582" title="Poco::XML::AbstractNode::events()">events</a>, <a href="Poco.XML.AbstractNode.html#17583" title="Poco::XML::AbstractNode::eventsSuspended()">eventsSuspended</a>, <a href="Poco.XML.AbstractContainerNode.html#17504" title="Poco::XML::AbstractContainerNode::firstChild()">firstChild</a>, <a href="Poco.XML.AbstractNode.html#17529" title="Poco::XML::AbstractNode::getNodeValue()">getNodeValue</a>, <a href="Poco.XML.AbstractContainerNode.html#17517" title="Poco::XML::AbstractContainerNode::hasAttributes()">hasAttributes</a>, <a href="Poco.XML.AbstractContainerNode.html#17516" title="Poco::XML::AbstractContainerNode::hasChildNodes()">hasChildNodes</a>, <a href="Poco.XML.AbstractNode.html#17571" title="Poco::XML::AbstractNode::innerText()">innerText</a>, <a href="Poco.XML.AbstractContainerNode.html#17506" title="Poco::XML::AbstractContainerNode::insertBefore()">insertBefore</a>, <a href="Poco.XML.AbstractNode.html#17554" title="Poco::XML::AbstractNode::isSupported()">isSupported</a>, <a href="Poco.XML.AbstractContainerNode.html#17505" title="Poco::XML::AbstractContainerNode::lastChild()">lastChild</a>, <a href="Poco.XML.AbstractNode.html#17559" title="Poco::XML::AbstractNode::localName()">localName</a>, <a href="Poco.XML.AbstractNode.html#17557" title="Poco::XML::AbstractNode::namespaceURI()">namespaceURI</a>, <a href="Poco.XML.AbstractNode.html#17537" title="Poco::XML::AbstractNode::nextSibling()">nextSibling</a>, <a href="Poco.XML.AbstractNode.html#17528" title="Poco::XML::AbstractNode::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.AbstractNode.html#17553" title="Poco::XML::AbstractNode::normalize()">normalize</a>, <a href="Poco.XML.AbstractNode.html#17539" title="Poco::XML::AbstractNode::ownerDocument()">ownerDocument</a>, <a href="Poco.XML.AbstractNode.html#17532" title="Poco::XML::AbstractNode::parentNode()">parentNode</a>, <a href="Poco.XML.AbstractNode.html#17558" title="Poco::XML::AbstractNode::prefix()">prefix</a>, <a href="Poco.XML.AbstractNode.html#17536" title="Poco::XML::AbstractNode::previousSibling()">previousSibling</a>, <a href="Poco.XML.DOMObject.html#17882" title="Poco::XML::DOMObject::release()">release</a>, <a href="Poco.XML.AbstractContainerNode.html#17512" title="Poco::XML::AbstractContainerNode::removeChild()">removeChild</a>, <a href="Poco.XML.AbstractNode.html#17565" title="Poco::XML::AbstractNode::removeEventListener()">removeEventListener</a>, <a href="Poco.XML.AbstractContainerNode.html#17509" title="Poco::XML::AbstractContainerNode::replaceChild()">replaceChild</a>, <a href="Poco.XML.AbstractNode.html#17530" title="Poco::XML::AbstractNode::setNodeValue()">setNodeValue</a>, <a href="Poco.XML.AbstractNode.html#17601" title="Poco::XML::AbstractNode::setOwnerDocument()">setOwnerDocument</a></p>
<h2>Constructors</h2>
<h3><a name="18231">Element</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a>(<br /> <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> * pOwnerDocument,<br /> const <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> & elem<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="18226">Element</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a>(<br /> <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> * pOwnerDocument,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & localName,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & qname<br />);</p>
<div class="description">
<p></p>
</div>
<h2>Destructor</h2>
<h3><a name="18234">~Element</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">~<a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a>();</p>
<div class="description">
<p></p>
</div>
<h2>Member Functions</h2>
<h3><a name="18175">addAttributeNodeNP</a></h3>
<p class="decl"><a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * addAttributeNodeNP(<br /> <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * oldAttr,<br /> <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * newAttr<br />);</p>
<div class="description">
<p>For internal use only. Adds a new attribute after oldAttr. If oldAttr is 0, newAttr is set as first attribute. Returns newAttr. Does not fire any events. </p>
</div>
<h3><a name="18224">attributes</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.NamedNodeMap.html" title="class Poco::XML::NamedNodeMap">NamedNodeMap</a> * attributes() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractNode.html#17538" title="Poco::XML::AbstractNode::attributes()">Poco::XML::AbstractNode::attributes()</a></p></div>
<h3><a name="18164">getAttribute</a></h3>
<p class="decl">const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & getAttribute(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & name<br />) const;</p>
<div class="description">
<p>Retrieves an attribute value by name. </p>
<p>Returns the attribute's value, if the attribute exists, or an empty string otherwise. </p>
</div>
<h3><a name="18183">getAttributeNS</a></h3>
<p class="decl">const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & getAttributeNS(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & localName<br />) const;</p>
<div class="description">
<p>Retrieves an attribute value by name. </p>
<p>Returns the attribute's value, if the attribute exists, or an empty string otherwise. </p>
</div>
<h3><a name="18171">getAttributeNode</a></h3>
<p class="decl"><a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * getAttributeNode(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & name<br />) const;</p>
<div class="description">
<p>Retrieves an <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> node by name. </p>
</div>
<h3><a name="18193">getAttributeNodeNS</a></h3>
<p class="decl"><a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * getAttributeNodeNS(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & localName<br />) const;</p>
<div class="description">
<p>Retrieves an <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> node by name. </p>
</div>
<h3><a name="18211">getChildElement</a></h3>
<p class="decl"><a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> * getChildElement(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & name<br />) const;</p>
<div class="description">
<p>Returns the first child element with the given name, or null if such an element does not exist. </p>
<p>This method is an extension to the W3C <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> Object Model. </p>
</div>
<h3><a name="18213">getChildElementNS</a></h3>
<p class="decl"><a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> * getChildElementNS(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & localName<br />) const;</p>
<div class="description">
<p>Returns the first child element with the given namespaceURI and localName, or null if such an element does not exist. </p>
<p>This method is an extension to the W3C <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> Object Model. </p>
</div>
<h3><a name="18216">getElementById</a></h3>
<p class="decl"><a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> * getElementById(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & elementId,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & idAttribute<br />) const;</p>
<div class="description">
<p>Returns the first <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> whose ID attribute (given in idAttribute) has the given elementId. If no such element exists, returns null. </p>
<p>This method is an extension to the W3C <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> Object Model. </p>
</div>
<h3><a name="18219">getElementByIdNS</a></h3>
<p class="decl"><a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> * getElementByIdNS(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & elementId,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & idAttributeURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & idAttributeLocalName<br />) const;</p>
<div class="description">
<p>Returns the first <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> whose ID attribute (given in idAttributeURI and idAttributeLocalName) has the given elementId. If no such element exists, returns null. </p>
<p>This method is an extension to the W3C <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> Object Model. </p>
</div>
<h3><a name="18180">getElementsByTagName</a></h3>
<p class="decl"><a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> * getElementsByTagName(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & name<br />) const;</p>
<div class="description">
<p>Returns a <a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> of all descendant elements with a given tag name, in the order in which they would be encountered in a preorder traversal of the <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> tree. </p>
<p>The special name "*" matches all tags. </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="18203">getElementsByTagNameNS</a></h3>
<p class="decl"><a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> * getElementsByTagNameNS(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & localName<br />) const;</p>
<div class="description">
<p>Returns a <a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> of all the descendant Elements with a given local name and namespace <a href="Poco.URI.html" title="class Poco::URI">URI</a> in the order in which they are encountered in a preorder traversal of this <a href="Poco.XML.Element.html" title="class Poco::XML::Element">Element</a> tree. </p>
<p>The special value "*" matches all namespaces, or local names respectively. </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="18198">hasAttribute</a></h3>
<p class="decl">bool hasAttribute(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & name<br />) const;</p>
<div class="description">
<p>Returns true if and only if the element has the specified attribute. </p>
</div>
<h3><a name="18200">hasAttributeNS</a></h3>
<p class="decl">bool hasAttributeNS(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & localName<br />) const;</p>
<div class="description">
<p>Returns true if and only if the element has the specified attribute. </p>
</div>
<h3><a name="18209">hasAttributes</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">bool hasAttributes() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractContainerNode.html#17517" title="Poco::XML::AbstractContainerNode::hasAttributes()">Poco::XML::AbstractContainerNode::hasAttributes()</a></p></div>
<h3><a name="18210">innerText</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> innerText() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractNode.html#17571" title="Poco::XML::AbstractNode::innerText()">Poco::XML::AbstractNode::innerText()</a></p></div>
<h3><a name="18208">localName</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & localName() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractNode.html#17559" title="Poco::XML::AbstractNode::localName()">Poco::XML::AbstractNode::localName()</a></p></div>
<h3><a name="18206">namespaceURI</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractNode.html#17557" title="Poco::XML::AbstractNode::namespaceURI()">Poco::XML::AbstractNode::namespaceURI()</a></p></div>
<h3><a name="18223">nodeName</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & nodeName() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractNode.html#17528" title="Poco::XML::AbstractNode::nodeName()">Poco::XML::AbstractNode::nodeName()</a></p></div>
<h3><a name="18225">nodeType</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">unsigned short nodeType() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.Node.html#18504" title="Poco::XML::Node::nodeType()">Poco::XML::Node::nodeType()</a></p></div>
<h3><a name="18182">normalize</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void normalize();</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.Element.html" title="class Poco::XML::Element">Element</a>, including attribute nodes, into a "normal" form where only markup (e.g., tags, 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 no adjacent <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>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractNode.html#17553" title="Poco::XML::AbstractNode::normalize()">Poco::XML::AbstractNode::normalize()</a></p></div>
<h3><a name="18207">prefix</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> prefix() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractNode.html#17558" title="Poco::XML::AbstractNode::prefix()">Poco::XML::AbstractNode::prefix()</a></p></div>
<h3><a name="18169">removeAttribute</a></h3>
<p class="decl">void removeAttribute(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & name<br />);</p>
<div class="description">
<p>Removes an attribute by name. </p>
</div>
<h3><a name="18190">removeAttributeNS</a></h3>
<p class="decl">void removeAttributeNS(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & localName<br />);</p>
<div class="description">
<p>Removes an attribute by name. </p>
</div>
<h3><a name="18178">removeAttributeNode</a></h3>
<p class="decl"><a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * removeAttributeNode(<br /> <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * oldAttr<br />);</p>
<div class="description">
<p>Removes the specified attribute. </p>
</div>
<h3><a name="18166">setAttribute</a></h3>
<p class="decl">void setAttribute(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & name,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & value<br />);</p>
<div class="description">
<p>Adds a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter. This value is a simple string; it is not parsed as it is being set. So any markup (such as syntax to be recognized as an entity reference) is treated as literal text, and needs to be appropriately escaped by the implementation when it is written out. </p>
</div>
<h3><a name="18186">setAttributeNS</a></h3>
<p class="decl">void setAttributeNS(<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & namespaceURI,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & qualifiedName,<br /> const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> & value<br />);</p>
<div class="description">
<p>Adds a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter. </p>
</div>
<h3><a name="18173">setAttributeNode</a></h3>
<p class="decl"><a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * setAttributeNode(<br /> <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * newAttr<br />);</p>
<div class="description">
<p>Adds a new attribute. If an attribute with that name is already present in the element, it is replaced by the new one. </p>
</div>
<h3><a name="18196">setAttributeNodeNS</a></h3>
<p class="decl"><a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * setAttributeNodeNS(<br /> <a href="Poco.XML.Attr.html" title="class Poco::XML::Attr">Attr</a> * newAttr<br />);</p>
<div class="description">
<p>Adds a new attribute. If an attribute with that name is already present in the element, it is replaced by the new one. </p>
</div>
<h3><a name="18163">tagName</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> & tagName() const;</p>
<div class="description">
<p>Returns the name of the element. </p>
<p>For example, in </p>
<p></p>
<pre><elementExample id="demo">
...
</elementExample>
</pre>
<p>tagName has the value "elementExample". Note that this is case-preserving in <a href="Poco.XML.html" title="namespace Poco::XML">XML</a>, as are all of the operations of the DOM. </p>
</div>
<h3><a name="18235">copyNode</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"><a href="Poco.XML.Node.html" title="class Poco::XML::Node">Node</a> * copyNode(<br /> bool deep,<br /> <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> * pOwnerDocument<br />) const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractNode.html#17579" title="Poco::XML::AbstractNode::copyNode()">Poco::XML::AbstractNode::copyNode()</a></p></div>
<h3><a name="18239">dispatchNodeInsertedIntoDocument</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">void dispatchNodeInsertedIntoDocument();</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractContainerNode.html#17525" title="Poco::XML::AbstractContainerNode::dispatchNodeInsertedIntoDocument()">Poco::XML::AbstractContainerNode::dispatchNodeInsertedIntoDocument()</a></p></div>
<h3><a name="18238">dispatchNodeRemovedFromDocument</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">void dispatchNodeRemovedFromDocument();</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.AbstractContainerNode.html#17524" title="Poco::XML::AbstractContainerNode::dispatchNodeRemovedFromDocument()">Poco::XML::AbstractContainerNode::dispatchNodeRemovedFromDocument()</a></p></div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright © 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>
</div>
</body>
</html>
|