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-33
XMLDOMNodeList Object
reason
Contains the reason for the last parse error, displaying a description of the error.
Remarks
String. Read-only.
Syntax
strValue = oXMLDOMParseError.errorCode
Example
var doc = new XML.DOMDocument
doc.load(“sample.xml”);
if (doc.parseError.errorCode != 0) {
println(“load failed, reason = “ + doc.parseError.reason)
}
url
Returns the system identifier of the entity where the exception occurred, or null if
none is available. If the system identifier is a URL, it will be resolved fully.
Remarks
String. Read-only.
Syntax
strURL = oXMLDOMParseError.url
Example
var doc = new XML.DOMDocument
doc.load(“sample.xml”);
if (doc.parseError.errorCode != 0) {
println(“load failed, url = “ + doc.parseError.url)
}
XMLDOMNodeList Object
The XMLDOMNodeList object provides the abstraction of an ordered collection of
nodes. A XMLDOMNodeList Object
collection is “live,” in that any changes to the
document tree are immediately reflected in any node lists that may have been created for
that tree.
There are two ways to create an XMLDOMNodeList object:
The getElementsByTagName method of the DOMDocument Object
The childNodes property of the XMLDOMNode Object
The items in the XMLDOMNodeList object are accessible via an integral index, starting
from 0.