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-47
Properties
Syntax
boolValue = oXMLDOMAttribute.specified
Example
var doc = new XML.DOMDocument;
doc.validateOnParse = true;
doc.load("sample.xml");
root = doc.documentElement;
var map =
root.childNodes.item(0).childNodes.item(4).attributes;
var attr = map.item(1)
println(attr.specified);
Output
true
value
Contains the attribute value. The value of the attribute is returned as a string.
Character and general entity references are replaced with their values. A text node
with the unparsed contents of the string assigned by the value property will be
created.
Remarks
String. Read/write.
Syntax
strValue = oXMLDOMAttribute.value
oXMLDOMAttribute.value = strValue
Example
var doc = new XML.DOMDocument;
doc.validateOnParse = true;
doc.load("sample.xml");
root = doc.documentElement;
var map =
root.childNodes.item(0).childNodes.item(4).attributes;
var attr = map.item(1)
println(attr.value);
Output
Yes