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-59
XMLDOMImplementation Object
XMLDOMImplementation Object
The XMLDOMImplementation object provides a way to query the capabilities of an 
implementation of the DOM. The XMLDOMImplementation object does not inherit 
from XMLDOMNode Object
, and it has only one method as described below.
Method
hasFeature
Tests if the DOM implementation implements a specific feature.
Syntax
BoolValue = oXMLDOMImplementation.hasFeature(feature, version)
Parameters
feature – The case-insensitive string value to test. The legal values are defined 
throughout this specification. The string must be an XML name.
version – This is the version number of the package name to test. In level 1, this 
is the string “1.0”. If the version is not specified, supporting any version of the 
feature causes the method to return true.
Return Value
boolean – true if the feature is implemented in the specified version, false 
otherwise.
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
var impl = doc.implementation;
println(impl.hasFeature("XML", "1.0"));
Output
true
XMLDOMNotation Object
The XMLDOMNotation object represents a notation declared in the DTD. A notation 
either declares, by name, the format of an unparsed entity, or is used for formal 
declaration of processing instruction targets. The nodeName attribute inherited from 
the XMLDOMNode Object
 is set to the declared name of the notation. An 
XMLDOMNotation node does not have any parent.










