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-19
Properties
Syntax
var objImplementation = domDoc.implementation
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
println(doc.implementation.hasFeature("XML", "1.0"));
Output
true
parseError
Returns an XMLDOMParseError object that contains information about the last
parsing error. The returned object is always a valid object. This is an extension of
the W3C DOM.
Remarks
Object (XMLDOMParseError). Read-only.
Syntax
var objParseError = domDoc.parseError
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
var err = doc.parseError;
println("errorCode = " + err.errorCode);
Output
errorCode = 0
preserveWhiteSpace
Contains the “include ignorable whitespace” flag for the DOM parser. When set to
true, all ignorable white spaces will be added to the DOM tree as text nodes.
When set to false, all ignorable white spaces will be discarded and no text node is
added to the DOM tree. The default value is false. Applications intended to
process the “xml:space” attribute should not set this flag to false.
This property is applicable only when the DTD is defined in the DOMDocument
Object.
Remarks
Boolean. Read/write.
Syntax
var objElement = domDoc.preserveWhiteSpace
domDoc.preserveWhiteSpace = true|false