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-8
Properties
Example
var domDoc = new XML.DOMDocument;
domDoc.validateOnParse = true;
domDoc.load("sample.xml");
var root = domDoc.documentElement;
println("nodeType = " + root.nodeType);
Output
nodeType = 1
nodeValue
Gets the value of this node.
Remarks
String. Read-only, read/write, or null.
Syntax
var strValue = oNode.nodeValue
ATPException
The following list shows the possible error-detail codes for the ATPException,
where error code is equal to ATP_ERR_DOM_EXCEPTION.
NO_MODIFICATION_ALLOWED_ERR(7): This error-detail code indicates
that the nodeValue attribute is read-only for this DOM object type.
Node Type NodeValue
NODE_ELEMENT null, read/write
NODE_ATTRIBUTE attribute value, read-only
NODE_TEXT text node content, read-only
NODE_CDATA_SECTION CDATA section content, read-only
NODE_ENTITY_REFERENCE null, read/write
NODE_ENTITY null, read/write
NODE_PROCESSING_INSTRUCTION entire content, excluding the target,
read-only
NODE_COMMENT comment content, read-only
NODE_DOCUMENT null, read/write
NODE_DOCUMENT_TYPE null, read/write
NODE_DOCUMENT_FRAGMENT null, read/write
NODE_XMLDECL null, read/write
NODE_NOTATION null, read/write