Returns the value of the specified attribute of an element referred to by an XML node reference.
Return type: CHARACTER
Applies to:
X-noderef object handle
Syntax
-
name
- The attribute name whose value is desired. Attribute names are defined within the
element tag. If using a DTD, you can define attributes with the "IMPLIED" property and
those attributes will appear in the DOM structure.
If the requested attribute does not exist, an empty string is returned.
The following example demonstrates listing all the attributes of the
node:
...
anames = hNoderef:ATTRIBUTE-NAMES.
REPEAT jx = 1 TO NUM-ENTRIES(anames):
bname = ENTRY(jx, anames).
MESSAGE "attribute-name is" bname "value is"
hNoderef:GET-ATTRIBUTE(bname).
END.
|