Language Reference Guide : System Classes : XMLDocument Class : WriteProcessingInstruction Method
 
Share this page          
WriteProcessingInstruction Method
WriteProcessingInstruction is a low-level method that writes an XML processing instruction to the file previously opened by WriteStartDocument().
This method has the following syntax:
integer = XMLDocument.WriteProcessingInstruction(target = varchar(256),
          data = StringObject)
This method has the following parameters:
target
(Required) Specifies the target name of the processing instruction
data
(Required) Specifies the data of the processing instruction
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.