PreviousNextIndex

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

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 jx = 1 TO NUM-ENTRIES(anames): 
  bname = ENTRY(jx, anames). 
  MESSAGE "attribute-name is" bname "value is" 
    hNoderef:GET-ATTRIBUTE(bname). 
END. 


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex