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-61
Properties
Properties
data
Contains the content of this processing instruction. This is from the first non-white
space character after the target to the character immediately preceding the ?>.
Remarks
String. Read/write.
Syntax
strValue = oXMLDOMProcessingInstruction.data
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;
var pi =
doc.createProcessingInstruction("xml", "version='1.0'");
println(pi.xml);
println("data property is " + pi.data);
Output
<?xml version='1.0'?>
data property is version='1.0'
target
Contains the target of this processing instruction. XML defines this as being the first
token following the markup that begins the processing instruction.
Remarks
String. Read-only.
Syntax
strValue = oXMLDOMProcessingInstruction.target
Example
var doc = new XML.DOMDocument;
var pi =
doc.createProcessingInstruction("xml", "version='1.0'");
println(pi.xml);
println("target property is " + pi.target);