WRITE-PROCESSING-INSTRUCTION( ) method

Creates a processing instruction node in an XML document represented by a SAX-writer object.

Return type: LOGICAL

Applies to: SAX-writer object handle

Syntax

WRITE-PROCESSING-INSTRUCTION ( target, data )
target
A CHARACTER or LONGCHAR expression evaluating to the target of the processing instruction.
data
A CHARACTER or LONGCHAR expression that evaluates to the data associated with the processing instruction.

Call this method to add a processing instruction node to the XML document. You can add processing instructions at any time. The SAX-writer object creates the processing instruction by enclosing the CHARACTER expression in open and close processing instruction markers (<? and ?>). For example:

<?xml version="1.0"?>

This method does not change the WRITE-STATUS attribute.