<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/xml/qdom.cpp:913 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>QDomNodeList Class</title> <style type="text/css"><!-- fn { margin-left: 1cm; text-indent: -1cm; } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } body { background: #ffffff; color: black; } --></style> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr bgcolor="#E5E5E5"> <td valign=center> <a href="index.html"> <font color="#004faf">Home</font></a> | <a href="classes.html"> <font color="#004faf">All Classes</font></a> | <a href="mainclasses.html"> <font color="#004faf">Main Classes</font></a> | <a href="annotated.html"> <font color="#004faf">Annotated</font></a> | <a href="groups.html"> <font color="#004faf">Grouped Classes</font></a> | <a href="functions.html"> <font color="#004faf">Functions</font></a> </td> <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QDomNodeList Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1> <p>The QDomNodeList class is a list of QDomNode objects. <a href="#details">More...</a> <p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p> <p><tt>#include <<a href="qdom-h.html">qdom.h</a>></tt> <p><a href="qdomnodelist-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> <li class=fn><a href="#QDomNodeList"><b>QDomNodeList</b></a> ()</li> <li class=fn><a href="#QDomNodeList-2"><b>QDomNodeList</b></a> ( const QDomNodeList & n )</li> <li class=fn>QDomNodeList & <a href="#operator-eq"><b>operator=</b></a> ( const QDomNodeList & n )</li> <li class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const QDomNodeList & n ) const</li> <li class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const QDomNodeList & n ) const</li> <li class=fn>virtual <a href="#~QDomNodeList"><b>~QDomNodeList</b></a> ()</li> <li class=fn>virtual QDomNode <a href="#item"><b>item</b></a> ( int index ) const</li> <li class=fn>virtual uint <a href="#length"><b>length</b></a> () const</li> <li class=fn>uint <a href="#count"><b>count</b></a> () const</li> </ul> <hr><a name="details"></a><h2>Detailed Description</h2> The QDomNodeList class is a list of <a href="qdomnode.html">QDomNode</a> objects. <p> <p> Lists can be obtained by <a href="qdomdocument.html#elementsByTagName">QDomDocument::elementsByTagName</a>() and <a href="qdomnode.html#childNodes">QDomNode::childNodes</a>(). The Document Object Model (DOM) requires these lists to be "live": whenever you change the underlying document, the contents of the list will get updated. <p> You can get a particular node from the list with <a href="#item">item</a>(). The number of items in the list is returned by <a href="#count">count</a>() (and by <a href="#length">length</a>()). <p> For further information about the Document Object Model see <a href="http://www.w3.org/TR/REC-DOM-Level-1/">http://www.w3.org/TR/REC-DOM-Level-1/</a> and <a href="http://www.w3.org/TR/DOM-Level-2-Core/">http://www.w3.org/TR/DOM-Level-2-Core/</a>. For a more general introduction of the DOM implementation see the <a href="qdomdocument.html">QDomDocument</a> documentation. <p> <p>See also <a href="qdomnode.html#childNodes">QDomNode::childNodes</a>(), <a href="qdomdocument.html#elementsByTagName">QDomDocument::elementsByTagName</a>(), and <a href="xml-tools.html">XML</a>. <hr><h2>Member Function Documentation</h2> <h3 class=fn><a name="QDomNodeList"></a>QDomNodeList::QDomNodeList () </h3> Creates an empty node list. <h3 class=fn><a name="QDomNodeList-2"></a>QDomNodeList::QDomNodeList ( const <a href="qdomnodelist.html">QDomNodeList</a> & n ) </h3> Constructs a copy of <em>n</em>. <h3 class=fn><a name="~QDomNodeList"></a>QDomNodeList::~QDomNodeList ()<tt> [virtual]</tt> </h3> Destroys the object and frees its resources. <h3 class=fn>uint <a name="count"></a>QDomNodeList::count () const </h3> <p> Returns the number of nodes in the list. <p> This function is the same as <a href="#length">length</a>(). <h3 class=fn><a href="qdomnode.html">QDomNode</a> <a name="item"></a>QDomNodeList::item ( int index ) const<tt> [virtual]</tt> </h3> Returns the node at position <em>index</em>. <p> If <em>index</em> is negative or if <em>index</em> >= <a href="#length">length</a>() then a null node is returned (i.e. a node for which <a href="qdomnode.html#isNull">QDomNode::isNull</a>() returns TRUE). <p> <p>See also <a href="#count">count</a>(). <h3 class=fn>uint <a name="length"></a>QDomNodeList::length () const<tt> [virtual]</tt> </h3> Returns the number of nodes in the list. <p> This function is the same as <a href="#count">count</a>(). <h3 class=fn>bool <a name="operator!-eq"></a>QDomNodeList::operator!= ( const <a href="qdomnodelist.html">QDomNodeList</a> & n ) const </h3> Returns TRUE the node list <em>n</em> and this node list are not equal; otherwise returns FALSE. <h3 class=fn><a href="qdomnodelist.html">QDomNodeList</a> & <a name="operator-eq"></a>QDomNodeList::operator= ( const <a href="qdomnodelist.html">QDomNodeList</a> & n ) </h3> Assigns <em>n</em> to this node list. <h3 class=fn>bool <a name="operator-eq-eq"></a>QDomNodeList::operator== ( const <a href="qdomnodelist.html">QDomNodeList</a> & n ) const </h3> Returns TRUE if the node list <em>n</em> and this node list are equal; otherwise returns FALSE. <!-- eof --> <hr><p> This file is part of the <a href="index.html">Qt toolkit</a>. Copyright © 1995-2007 <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center> <table width=100% cellspacing=0 border=0><tr> <td>Copyright © 2007 <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a> <td align=right><div align=right>Qt 3.3.8</div> </table></div></address></body> </html>