![]() | InDesign SDK 20.5 |
#include <IIDXMLDOMNamedNodeMap.h>
Public Member Functions | |
| IIDXMLDOMNamedNodeMap (const BIB_NAMESPACE::CAXENamedNodeMapDOM &) | |
| virtual int32 | Length () const =0 |
| virtual IIDXMLDOMNode * | GetNthNode (int32 which)=0 |
| virtual IIDXMLDOMNode * | GetNamedItem (const WideString &name)=0 |
| virtual IIDXMLDOMNode * | GetNamedItemNS (const WideString &namespaceURI, const WideString &localName)=0 |
| virtual IIDXMLDOMNode * | RemoveNamedItem (const WideString &name)=0 |
| virtual IIDXMLDOMNode * | RemoveNamedItemNS (const WideString &namespaceURI, const WideString &localName)=0 |
| virtual IIDXMLDOMNode * | SetNamedItem (IIDXMLDOMNode *newNode)=0 |
| virtual IIDXMLDOMNode * | SetNamedItemNS (IIDXMLDOMNode *newNode)=0 |
A map of named nodes
IIDXMLDOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name.
Note that IIDXMLDOMNamedNodeMap does not inherit from IIDXMLDOMNList; IIDXMLDOMNamedNodeMaps are not maintained in any particular order. Nodes contained in a IIDXMLDOMNamedNodeMap may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents, and does not imply that the DOM specifies an order to these Nodes.
Invalid Parameters
Unless otherwise indicated, it is an error to use an invalid container (IsValid() == false), or a NULL pointer, as a parameter to any function. In some instances, the requirement that a specific parameter must be valid is repeated in the commentary for the specific function. The lack of any indication in the commentary for the specific function should still be taken to mean that an invalid container or NULL pointer will result in an error.
| pure virtual |
Get node by name
| name | The nodeName of a node to retrieve. |
| pure virtual |
| pure virtual |
Returns an item in the map
If 'which' is greater than or equal to the number of nodes in the map, returns nil.
| which | Index into the list, starting with 0. |
| pure virtual |
Get number of nodes in list
The range of valid child node indices is 0 to length-1 inclusive.
| pure virtual |
Removes a node specified by name.
| name | The nodeName of a node to remove. |
| pure virtual |
Removes a node specified by local name and namespace URI.
| namespaceURI | The namespace URI of the node to remove. |
| localName | The local part of the node to remove. When this map contains the attributes attached to an element, as returned by the GetAttributes call of the IIDXMLDOMNode interface, if the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix. |
| pure virtual |
Adds a node by name
As the nodeName attribute is used to derive the name which the node must be stored under, multiple nodes of certain types (those that have a "special" string value) cannot be stored as the names would clash. This is seen as preferable to allowing nodes to be aliased.
| newNode | A node to store in a named node map. The node will later be accessible using the value of the nodeName attribute of the node. If a node with that name is already present in the map, it is replaced by the new one. |
| pure virtual |
Adds a node by local name and namespace URI
As the nodeName attribute is used to derive the name which the node must be stored under, multiple nodes of certain types (those that have a "special" string value) cannot be stored as the names would clash. This is seen as preferable to allowing nodes to be aliased.
| newNode | A node to store in a named node map. The node will later be accessible using the value of the nodeName attribute of the node. If a node with that name is already present in the map, it is replaced by the new one. |