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-64
Methods
length
Specifies the length, in characters, of the data. The length may be 0.
Remarks
Unsigned integer. Read-only.
Syntax
nValue = oXMLDOMCharacterData.length
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
var comment = doc.documentElement.previousSibling;
println(comment.length);
Output
20
Methods
appendData
Appends the string to the end of the character data of the node. Upon success, the
data property provides access to the concatenation of data and the appended string
specified.
Syntax
oXMLCharacterData.appendData(data)
Parameters
data – A string value to append.
Return Value
None.
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 node is read-only.
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
var comment = doc.documentElement.previousSibling;
comment.appendData("; here is appended data");
println(comment.data);