Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The TQDomNamedNodeMap class contains a collection of nodes that can be accessed by name. More...
All the functions in this class are reentrant when TQt is built with thread support.
#include <ntqdom.h>
Note that TQDomNamedNodeMap does not inherit from TQDomNodeList. TQDomNamedNodeMaps do not provide any specific node ordering. Although nodes in a TQDomNamedNodeMap may be accessed by an ordinal index, this is simply to allow a convenient enumeration of the contents of a TQDomNamedNodeMap, and does not imply that the DOM specifies an ordering of the nodes.
The TQDomNamedNodeMap is used in three places:
Items in the map are identified by the name which TQDomNode::name() returns. Nodes are retrieved using namedItem(), namedItemNS() or item(). New nodes are inserted with setNamedItem() or setNamedItemNS() and removed with removeNamedItem() or removeNamedItemNS(). Use contains() to see if an item with the given name is in the named node map. The number of items is returned by length().
Terminology: in this class we use "item" and "node" interchangeably.
See also XML.
Returns the number of nodes in the map.
This function is the same as length().
This can be used to iterate over the map. Note that the nodes in the map are ordered arbitrarily.
See also length().
See also item().
If the named node map does not contain such a node, a null node is returned. A node's name is the name returned by TQDomNode::nodeName().
See also setNamedItem() and namedItemNS().
If the map does not contain such a node, a null node is returned.
See also setNamedItemNS() and namedItem().
The function returns the removed node or a null node if the map did not contain a node called name.
See also setNamedItem(), namedItem(), and removeNamedItemNS().
The function returns the removed node or a null node if the map did not contain a node with the local name localName and the namespace URI nsURI.
See also setNamedItemNS(), namedItemNS(), and removeNamedItem().
If the new node replaces an existing node, i.e. the map contains a node with the same name, the replaced node is returned.
See also namedItem(), removeNamedItem(), and setNamedItemNS().
See also namedItemNS(), removeNamedItemNS(), and setNamedItem().
This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech | Trademarks | TQt 3.3.8
|