The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name. More...
#include <qdom.h>
Note that QDomNamedNodeMap does not inherit from QDomNodeList; QDomNamedNodeMaps does not provide any specific order of the nodes. Nodes contained in a QDomNamedNodeMap may also be accessed by an ordinal index, but this is simply to allow a convenient enumeration of the contents of a QDomNamedNodeMap and does not imply that the DOM specifies an order on the nodes.
The QDomNamedNodeMap is used in three places:
Items in the map are identified by the name which QDomNode::name() returns. They can be queried using the namedItem() function and set using setNamedItem().
See also namedItem() and setNamedItem().
Constructs an empty map.
Copy constructor.
Destructor.
Returns TRUE if the map contains a node with the name name, otherwise FALSE.
Retrieves the node at position index.
This can be used to iterate over the map.
See also length().
Returns the number of nodes in the map.
See also item().
Returns the node associated with they key name.
If the map does not contain such a node, then a null node is returned.
See also setNamedItem().
Returns TRUE if the maps are not equal, FALSE otherwise.
Assignement operator.
Returns TRUE if the maps are equal, FALSE otherwise.
Removes the node with the name name from the map.
The function returns the removed node or a null node if the map did not contain a node with the name name.
See also setNamedItem().
Inserts the node newNode in the map. The kye for the map is the name of newNode as returned by QDomNode::nodeName().
The function returns the newly inserted node.
See also removeNamedItem().
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 Trolltech | Trademarks | Qt version 2.2.1
|