SQR Commands to Generate XML Output

The following table describes the SQR commands to generate XML output:

SQR Command

Description

DEFINE_XML_TEMPLATE

Defines the structure of the XML.

ADD_DATA_TO_XML_RECORD

Adds data to XML template to create an XML-RECORD before writing the XML file.

ADD_CHILD_TO_XML_RECORD

Adds a child record to the XML template to create an XML-RECORD in a tree structure before it is pushed to the XML file.

ADD_ATTRIBUTE_TO_XML_RECORD

Adds an attribute to any record or element that has data.

WRITE_TO_XML_FILE

Writes the XML records to the XML output file.

(Optional) WRITE_CDATA_TO_XML_FILE (OPTIONAL)

Adds character data or CDATA to XML files that are not parsed. A CDATA section starts with "<![CDATA[" and ends with "]]>".

(Optional) EDIT_XML_ROOT

Modifies the root tag name.

(Optional) ADD_COMMENT_TO_XML_FILE

Adds comment as title to the XML file.

(Optional) CLEAR-XML-RECORD

Clears parent and child XML records.