Language Reference Guide : System Classes : XMLDocument Class : WriteStartElement Method
 
Share this page          
WriteStartElement Method
WriteStartElement is a low-level method that writes the starting tag for an XML element including its attributes to the file previously opened by WriteStartDocument().
This method has the following syntax:
integer = XMLDocument.WriteStartElement(name = varchar(256)
          [, attributes = ArrayofXMLAttribute])
This method has the following parameters:
name
(Required) Specifies the name of the starting tag
attributes
Specifies the array of XMLAttribute for the starting tag
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.