Classes - Annotated - Tree - Functions - Home - Structure

QDomNodeList Class Reference
[XML module]

The QDomNodeList class is a list of QDomNode objects. More...

#include <qdom.h>

List of all member functions.

Public Members


Detailed Description

The QDomNodeList class is a list of QDomNode objects.

Lists can be obtained by QDomDocument::elementsByTagName() and QDomNode::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.

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

See also QDomNode::childNodes() and QDomDocument::elementsByTagName().


Member Function Documentation

QDomNodeList::QDomNodeList ()

Creates an empty node list.

QDomNodeList::QDomNodeList ( const QDomNodeList & n )

Constructs a copy of n.

QDomNodeList::~QDomNodeList () [virtual]

Destructor.

uint QDomNodeList::count () const

Returns the number of nodes in the list.

This function is the same as length().

QDomNode QDomNodeList::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 QDomNode::isNull() returns TRUE).

uint QDomNodeList::length () const [virtual]

Returns the number of nodes in the list.

This function is the same as count().

bool QDomNodeList::operator!= ( const QDomNodeList & n ) const

Returns TRUE n and this list are not equal, otherwise FALSE.

QDomNodeList & QDomNodeList::operator= ( const QDomNodeList & n )

Assigns n to this node list.

bool QDomNodeList::operator== ( const QDomNodeList & n ) const

Returns TRUE if n and this list are equal, otherwise FALSE.

Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):


This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.


Copyright © 2000 TrolltechTrademarks
Qt version main-beta1