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-31
XMLDOMParseError Object
Parameters
filename – String specifying the name of the target file.
Return Value
None.
ATPException
An ATPException is raised, where error code equals ATP_ERR_DOM_FILE_IO, if
there is a failure to save data to the file.
Example
var doc = new XML.DOMDocument;
doc.load(“sample.xml”);
doc.save(“sample2.xml”);
XMLDOMParseError Object
This object contains detailed information about the last parse error, including the error
number, line number, character position, and a text description. Table 5-6 specifies the
common properties of the XMLDOMParseError object.
Properties
errorCode
Contains the error code of the last parse error. 0 means no error.
Remarks
Integer. Read-only.
Syntax
intValue = oXMLDOMParseError.errorCode
Table 5-6. XMLDOMParseError Object Properties
Property Description
errorCode Contains the error code of the last parse error. Read-only.
line The line number of the end of the text where the exception
occurred. Read-only.
linepos The column number of the end of the text where the exception
occurred. Read-only.
reason The message explains the reason for error. Read-only.
url
Get the system identifier or the entity where the exception
occurred. If the system identifier is a URL, it will be resolved
fully. Read-only.