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-9
Properties
DOMSTRING_SIZE_ERR(2): This error-detail code indicates that the value
that would be returned is too large to be contained by a string type in the given
implementation.
Example
var domDoc = new XML.DOMDocument;
domDoc.validateOnParse = true;
domDoc.load("sample.xml");
var root = domDoc.documentElement;
var node =
root.childNodes.item(0).childNodes.item(0).firstChild;
println("nodeValue = " + node.nodeValue);
Output
nodeValue = Jenny Mabry
ownerDocument
Gets the DOMDocument Object associated with this node. This is also the
DOMDocument object used to create new nodes. When this node is a
DOMDocument Object
or an XMLDOMDocumentType Object that is not used with
any DOMDocument yet, this is null.
Remarks
Object (DOMDocument Object
). Read-only.
Syntax
var oNode = oNode.ownerDocument
Example
var domDoc = new XML.DOMDocument;
domDoc.validateOnParse = true;
domDoc.load("sample.xml");
var root = domDoc.documentElement;
println("OwnerDocument = " + root.ownerDocument.nodeName);
Output
OwnerDocument = #document
parentNode
Gets the parent of this node. All nodes except for DOMDocument Object,
XMLDOMDocumentFragment Object, and XMLDOMAttribute Object can have a
parent. However, if a node has just been created and not yet added to the tree, or if it
has been removed from the tree, a null is returned.
Remarks
Object (XMLDOMNode Object
). Read-only.