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-49
Methods
Remarks
String. Read-only.
Syntax
strValue = oXMLDOMElement.tagName
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
var root = doc.documentElement;
println(root.tagName);
Output
class99
Methods
getAttribute
Retrieves an attribute value by name.
Syntax
strValue = oXMLDOMElement.getAttribute (name)
Parameters
name – The name of an attribute to retrieve.
Return Value
String – Returns a string that contains the attribute value or returns the empty
string if the named attribute does not have a specified or default value.
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
var root = doc.documentElement;
var node = root.childNodes.item(1).childNodes.item(9);
println(node.getAttribute("permanent"));
Output
Yes
getAttributeNode
Retrieves an attribute node by name.
Syntax
var objXMLDOMAttribute = oXMLDOMElement.getAttributeNode(name)