Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Developer's Guide
Gathering Information About the Named Node Map
Like the IXMLDOMNodeList object, the IXMLDOMNamedNodeMap object exposes the length property. This property returns the number of members in the named node map.