Progress
Language Reference


ATTRIBUTE-NAMES Attribute

Returns a comma-separated list of an element’s attribute names. The attribute names are contained in the XML document. If the element does not have any attributes, the empty string (“”) is returned.

Data Type: CHARACTER

Access: Readable

Applies To: X-noderef Object Handle

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 XML 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