Progress
Language Reference


GET-ATTRIBUTE( ) Method

Returns the value of the specified attribute of an element referred to by an XML node reference.

Return Type: LOGICAL

Applies To: X-noderef Object Handle

SYNTAX
GET-ATTRIBUTE( name ) 

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 hNoderef is an element node with various attributes, and anames and bname are character program variables, the following example demonstrates listing all the attributes of the node:

anames = hNoderef:ATTRIBUTE-NAMES.
REPEAT j = 1 TO NUM-ENTRIES(anames):
  bname = ENTRY(j,anames).
  MESSAGE "attribute-name is" bname "value is"
        hNoderef:GET-ATTRIBUTE(bname).
END. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095