Language Reference Guide : System Classes : XMLElement Class : SetAttributeValue Method
 
Share this page          
SetAttributeValue Method
The SetAttributeValue method sets the value of the XMLAttribute with the given name in the Attributes list.
This method has the following syntax:
integer = XMLElement.SetAttributeValue(
          name = varchar(256),
          value = varchar(2000))
This method has the following parameters:
name
(Required) Specifies the name of the XMLAttribute
value
(Required) Specifies the value of the XMLAttribute
If the method is successful, it returns ER_OK; otherwise, it returns ER_FAIL. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.