Previous Topic: Data Model ChangesNext Topic: Release 13.3 Updates


XML Open Gateway (XOG) Changes

Changes to the writeFile GEL tag

The behavior of the GEL tag writeFile has been changed when the tag is used with the line tag. With this release, each call to the line tag writes the line to the specified output file. This change prevents potential out of memory issues when you run the GEL script. You can override the new behavior by specifying bulkWrite="true" on the writeFile tag.

Note: For writeFile examples, see the XML Open Gateway Developer Guide.

The following example shows the writeFile GEL tag.

 <f:writeFile 
    fileName="projectData.txt" <!-- filename is required -->
    delimiter="&#x9;" <!-- If not specified this is set to a comma (',')
    writeBulk="false" <!-- write one line at a time to the output file. This is the default behavior. If it is desired to have the result written at the end of the request set       writeBulk="true" -->
    maxFileSize="1g"  <!-- the maximum file size allowed when bulkWrite="false". 1G is the default; valid examples are 1024k, 250 m, 2g. -->
    >
  <gel:forEach select="myQuery" var="row">
        <f:line>
          <f:column value="${row.ID}"/>
          <f:column value="${row.NAME}"/>
        </f:line>
  </gel:forEach>
  </f:writeFile>

Upgrade Action: None

XML Open Gateway Output File is Not Indented

Starting with Release 13.3, the XOG client output is unformatted without line breaks or indentation. You can use third-party software to convert the output to a more readable, user-friendly format.

Upgrade Action: None