The XMLDOMNamedNodeMap Object

The Microsoft XML DOM also supports an XMLDOMNamedNodeMap object, which provides support for namespaces. Here is the base set of properties for this object:

  • item— Allows random access to nodes in the collection. Read-only.

  • length— Specifies the number of items in the collection. Read-only.

Here is the base set of methods for this object:

  • getNamedItem— Gets the attribute with the given name

  • getQualifiedItem*— Gets the attribute with the given namespace and attribute name

  • nextNode— Gets the next node

  • removeNamedItem— Removes an attribute

  • removeQualifiedItem— Removes the attribute with the given namespace and attribute name

  • reset— Resets the list iterator

  • setNamedItem— Adds the given node

This object has no events.

Get Real World XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.