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-39
Methods
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.getNamedItem("permanent").nodeValue);
Output
Yes
getQualifiedItem
Retrieves a node specified by local name and namespace URI.
Syntax
var objXMLDOMNode =
oXMLDOMNamedNodeMap.getQualifiedItem(baseName, namespaceURI)
Parameters
baseName – The local name of the node to retrieve.
namespaceURI – The namespace URI of the node to retrieve.
Return Value
ObjectAn XMLDOMNode Object
with the specified baseName and
namespaceURI, or null if it does not identify any node in the map.
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.getQualifiedItem("permanent", "").nodeName);
Output
permanent
nextNode
Returns the next node in the collection. The iterator initially points before the first
node in the list so that the first call to nextNode returns the first node in the list.
This method returns nulls when the current node is the last node or there are no
items in the list.
Syntax
var objXMLDOMNode = oXMLDOMNameNodeMap.nextNode()