Language Reference Guide : System Classes : XMLElement Class : AddAttribute Method
 
Share this page          
AddAttribute Method
The AddAttribute method adds an XMLAttribute with the given name and value to the end of the Attributes list.
This method has the following syntax:
integer = XMLElement.AddAttribute(
          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.