CL_DomNamedNodeMap - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# Class CL_DomNamedNodeMap

DOM Named Node Map class. More...

Derived from: none
Derived by: none
Group: Core (XML)

#include <ClanLib/core.h>

Construction:

CL_DomNamedNodeMap | Constructs a DOM NamedNodeMap handle.

Attributes:

get_length | The number of nodes in the map.

Operations:

get_named_item | Retrieves a node specified by name.
set_named_item | Adds a node using its node name attribute.
remove_named_item | Removes a node specified by name.
item | Returns the indexth item in the map.

Detailed description:

!group=Core/XML! !header=core.h!

Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can be accessed by name. Note that NamedNodeMap does not inherit from NodeList; NamedNodeMaps are not maintained in any particular order. Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents of a NamedNodeMap, and does not imply that the DOM specifies an order to these Nodes.

Questions or comments, write to the ClanLib mailing list.