TQDomNodeList(3qt)

NAME
TQDomNodeList - List of TQDomNode objects

SYNOPSIS
All the functions in this class are reentrant when TQt is built with thread support.</p>

#include <tqdom.h>

  Public Members
TQDomNodeList ()
TQDomNodeList ( const TQDomNodeList & n )
TQDomNodeList & operator= ( const TQDomNodeList & n )
bool operator== ( const TQDomNodeList & n ) const
bool operator!= ( const TQDomNodeList & n ) const
virtual ~TQDomNodeList ()
virtual TQDomNode item ( int index ) const
virtual uint length () const
uint count () const

DESCRIPTION
The TQDomNodeList class is a list of TQDomNode objects.

Lists can be obtained by TQDomDocument::elementsByTagName() and TQDomNode::childNodes(). 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.

You can get a particular node from the list with item(). The number of items in the list is returned by count() (and by length()).

For further information about the Document Object Model see http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/. For a more general introduction of the DOM implementation see the TQDomDocument documentation.

See also TQDomNode::childNodes(), TQDomDocument::elementsByTagName(), and XML.

MEMBER FUNCTION DOCUMENTATION

TQDomNodeList::TQDomNodeList ()
Creates an empty node list.

TQDomNodeList::TQDomNodeList ( const TQDomNodeList & n )
Constructs a copy of n.

TQDomNodeList::~TQDomNodeList () [virtual]
Destroys the object and frees its resources.

uint TQDomNodeList::count () const
Returns the number of nodes in the list.

This function is the same as length().

TQDomNode TQDomNodeList::item ( int index ) const [virtual]
Returns the node at position index.

If index is negative or if index >= length() then a null node is returned (i.e. a node for which TQDomNode::isNull() returns true).

See also count().

uint TQDomNodeList::length () const [virtual]
Returns the number of nodes in the list.

This function is the same as count().

bool TQDomNodeList::operator!= ( const TQDomNodeList & n ) const
Returns true the node list n and this node list are not equal; otherwise returns false.

TQDomNodeList & TQDomNodeList::operator= ( const TQDomNodeList & n )
Assigns n to this node list.

bool TQDomNodeList::operator== ( const TQDomNodeList & n ) const
Returns true if the node list n and this node list are equal; otherwise returns false.

SEE ALSO
http://doc.trolltech.com/tqdomnodelist.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you.

The definitive TQt documentation is provided in HTML format; it is located at $TQTDIR/doc/html and can be read using TQt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (tqdomnodelist.3qt) and the Qt version (3.3.8).