The XmlNode class is derived from the Control class; no classes are derived from this class. The Control class is, in turn, derived from the AnyWin class.
In addition to the properties it inherits from the AnyWin and Control classes, XmlNode has the following properties:
Property | Type | Description |
---|---|---|
$DataType | STRING | Data type for the element. This value depends on the Type property of the element. See sDataType Property for details. |
$NamespaceBase | STRING | The Namespace base name for the name qualified with the namespace. Right-side of the qualified name. For example, Silk Test Classic returns the "nnn" portion of the namespace declaration xmlns:nnn="uuu". |
$NamespacePrefix | STRING | The namespace prefix specified on the element, attribute, or entity reference. For example, Silk Test Classic returns the "xmlns" portion of the namespace declaration xmlns:nnn="uuu". It returns and empty string, if no prefix is specified. |
$NamespaceURI | STRING | The URI (Universal Resource Identifier) portion for the namespace. This refers to the "uuu" portion of the namespace declaration xmlns:nnn="uuu". |
$Type | STRING | XML arranges in a tree of node. Even though most of the tags are user defined, there are a few reserved words to describe some basic characteristics of the node. See sType Property for more information. |
$Value | STRING | Contains the text associated with the node. |
By default XML recognition is turned off. You must turn XML recognition on before you can record XML in any window declaration. See Setting Options for XML Recognition for more information.
When you use Silk Test Classic to record window declarations for a page with XML, Silk Test Classic first captures the presentation layer, the HTML objects, that present the XML data. Then, below the HTML object, it lists the XML declarations. This can look as if the declarations have been captured twice, until you understand that Silk Test Classic first records the presentation layer, the objects as the appear in HTML, and then records the data, the XML itself.
XMLNode objects now use the Name attribute (if it exists) for the CaptionTag. There is a backward compatible variable, XMLNodeNamingVersion, in the domex.ini. The Name attribute is used by default unless you set XMLNodeNamingVersion = 0.