iTP Active Transaction Pages (iTP ATP) Programmer's Guide

XML for ATP Add-On Module
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
5-37
Properties
Table 5-9 specifies the common properties of the XMLDOMNamedNodeMap object.
Table 5-10
specifies the common methods of the XMLDOMNamedNodeMap object.
Properties
length
Indicates the number of nodes in the map.
Remarks
Unsigned Integer. Read-only.
Syntax
nValue = oXMLDOMNamedNodeMap.length
Example
var doc = new XML.DOMDocument;
doc.validateOnParse = true;
doc.load("sample.xml");
root = doc.documentElement;
var map =
root.childNodes.item(0).childNodes.item(4).attributes;
println(map.length);
Output
2
Table 5-9. XMLDOMNamedNodeMap Object Properties
Property Description
length Indicates the number of nodes in the map.
Table 5-10. XMLDOMNamedNodeMap Object Methods
Method Description
item Returns the index(th) item in the collection.
getNamedItem Retrieves a node specified by name.
getQualifiedItem Retrieves a node specified by local name and namespace URI.
nextNode Returns the next node in the collection.
reset Resets the iterator.
removeNamedItem Removes a node specified by name.
removeQualifiedItem Removes a node specified by local name and namespace URI.
setNamedItem Adds a node using its nodeName attribute.