START xml_file_record KEY IS xml_file_node IF write-after READ xml_file_record NEXT KEY IS xml_file_node END-IF WRITE xml_file_record KEY IS PROCESSING-INSTRUCTION 'processing-id processing-data'
For example, this technique is useful when dealing with the root node and the processing instruction 'xml version="1.0"'.
START xml_file_record KEY IS xml_file_node IF write-after READ xml_file_record NEXT KEY IS xml_file_node END-IF WRITE xml_file_record KEY IS PLAIN-TEXT 'processing-id processing-data'
This technique is useful when your XML program needs to 'decorate' an XML record with plain text data, for example, specifying "Content-type: text/xml" when operating in a CGI context.