Set node attributes and values
- Last Updated: June 7, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
You can set the attributes of a node or the value of
a node either before or after it is appended by using the SET-ATTRIBUTE( ) method
or the NODE-VALUE attribute. The following code
fragment depicts setting attributes of the "employee" ELEMENT node
with the SET-ATTRIBUTE( ) method and setting the
value of the "address" TEXT node with the NODE-VALUE attribute.
Both objects are X-noderef objects. Note that in
this case, the "employee" node is a child of the root node and the
"address" node is a child of the "employee" node:
|
For more information on attributes and methods associated with the X-document object and the X-noderef object, see their entries in ABL
Reference.