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-34
Properties
Table 5-7 specifies the common properties of the XMLDOMNodeList object.
Table 5-8
specifies the common methods of the XMLDOMNodeList object.
Properties
length
Indicates the number of items in the collection.
Remarks
Unsigned Integer. Read-only.
Syntax
nValue = oXMLDOMNodeList.length
Example
var doc = new XML.DOMDocument;
doc.validateOnParse = true;
doc.load("sample.xml");
var list = doc.documentElement.childNodes;
println(list.length);
Output
5
Methods
item
Returns the item specified by the index value in the collection. The range of the
index is 0 to length -1.
Syntax
var objXMLDOMNode = oXMLDOMNodeList.item(index)
Table 5-7. XMLDOMNodeList Object Properties
Method Description
length Indicates the number of items in the collection.
Table 5-8. XMLDOMNodeList Object Methods
Method Description
item Returns the item specified by the index value in the collection.
nextNode Returns the next node in the collection.
reset Resets the iterator.