iTP Active Transaction Pages (iTP ATP) Programmer's Guide
XML for ATP Add-On Module
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide—522292-002
5-32
Properties
Example
var doc = new XML.DOMDocument
doc.load(“sample.xml”);
if (doc.parseError.errorCode != 0) {
println(“load failed, error code = “ +
doc.parseError.errorCode)
}
line
Contains the error code of the last parse error. This is an integer representing the line
number, or –1 if none is available.
Remarks
Integer. Read-only.
Syntax
intValue = oXMLDOMParseError.line
Example
var doc = new XML.DOMDocument
doc.load(“sample.xml”);
if (doc.parseError.errorCode != 0) {
println(“load failed, line number = “ +
doc.parseError.line)
}
linepos
The column number of the end of the text where the exception occurred. The first
column in a line is position 1.
Remarks
Integer. Read-only.
Syntax
intValue = oXMLDOMParseError.linepos
Example
var doc = new XML.DOMDocument
doc.load(“sample.xml”);
if (doc.parseError.errorCode != 0) {
println(“load failed, column number = “ +
doc.parseError.linepos)
}