<!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::NodeList</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 NodeList</h1> </div> <div class="body"> <p> <b>Library:</b> XML<br /> <b>Package:</b> DOM<br /> <b>Header:</b> Poco/DOM/NodeList.h</p> <h2>Description</h2> <div class="description"> <p>The <a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. </p> <p>The items in the <a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> are accessible via an integral index, starting from 0. </p> <p>A <a href="Poco.XML.NodeList.html" title="class Poco::XML::NodeList">NodeList</a> returned from a method must be released with a call to release() when no longer needed. </p> </div> <h2>Inheritance</h2> <p><b>Direct Base Classes: </b><a href="Poco.XML.DOMObject.html" title="class Poco::XML::DOMObject">DOMObject</a></p> <p><b>All Base Classes: </b><a href="Poco.XML.DOMObject.html" title="class Poco::XML::DOMObject">DOMObject</a></p> <p><b>Known Derived Classes: </b><a href="Poco.XML.ChildNodesList.html" title="class Poco::XML::ChildNodesList">ChildNodesList</a>, <a href="Poco.XML.ElementsByTagNameList.html" title="class Poco::XML::ElementsByTagNameList">ElementsByTagNameList</a>, <a href="Poco.XML.ElementsByTagNameListNS.html" title="class Poco::XML::ElementsByTagNameListNS">ElementsByTagNameListNS</a></p> <h2>Member Summary</h2> <p><b>Member Functions: </b><a href="Poco.XML.NodeList.html#18600" title="Poco::XML::NodeList::item()">item</a>, <a href="Poco.XML.NodeList.html#18602" title="Poco::XML::NodeList::length()">length</a></p> <p><b>Inherited Functions: </b><a href="Poco.XML.DOMObject.html#17883" title="Poco::XML::DOMObject::autoRelease()">autoRelease</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></p> <h2>Destructor</h2> <h3><a name="18603">~NodeList</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.NodeList.html" title="class Poco::XML::NodeList">NodeList</a>();</p> <div class="description"> <p></p> </div> <h2>Member Functions</h2> <h3><a name="18600">item</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> * item(<br /> unsigned long index<br />) const = 0;</p> <div class="description"> <p>Returns the index'th item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null. </p> </div> <h3><a name="18602">length</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3> <p class="decl">virtual unsigned long length() const = 0;</p> <div class="description"> <p>Returns the number of nodes in the list. The range of valid node indices is 0 to length - 1 inclusive. </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>