| Reports / XML output for reports | |
If PRINTX commands are used inside program flow control instructions like IF, CASE, FOR, FOREACH and WHILE, the XML output will contain additional nodes to identify such conditional print instructions:
<For>
<ForItem>
<Print name="...">
<Item name="..." type="..." value="..." isoValue="..." />
</Print>
...
</ForItem>
...
</For>
<While>
<WhileItem>
<Print name="...">
<Item name="..." type="..." value="..." isoValue="..." />
</Print>
...
</WhileItem>
...
</While>
<Foreach>
<ForeachItem>
<Print name="...">
<Item name="..." type="..." value="..." isoValue="..." />
</Print>
...
</ForeachItem>
...
</Foreach>
<Case>
<When id="position">
<Print name="...">
<Item name="..." type="..." value="..." isoValue="..." />
</Print>
...
</When>
...
</Case>
<If>
<IfThen>
<Print name="...">
<Item name="..." type="..." value="..." isoValue="..." />
</Print>
...
</IfThen>
<IfElse>
<Print name="...">
<Item name="..." type="..." value="..." isoValue="..." />
</Print>
...
</IfElse>
</If>
That information can be useful to process an XML report output.