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-46
Properties
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.name);
Output
permanent
ownerElement
Contains the XMLDOMElement Object node this attribute is attached to. This
property returns null if the attribute is not in use.
Remarks
Object (XMLDOMElement Object
). Read-only.
Syntax
objAttribute = oXMLDOMAttribute.ownerElement
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.ownerElement.xml);
Output
<address street="Yes" permanent="Yes">1010 Fargo Drive,
Cupertino, California 95014 </address>
specified
Indicates whether this attribute is explicitly specified or derived from a default value
in the DTD. This property returns true if the attribute received its value explicitly
in the XML document, or if a value was assigned programmatically. It returns
false if the attribute value came from the default value declared in the document
DTD.
Remarks
Boolean. Read-only.