Previous Topic

Next Topic

Book Contents

Book Index

Example

If the input XML document contains the following code,

<?xml version="1.0" encoding="IBM-1140" ?>

<invoices>

    <date>14 Apr 2002</date>

    <invoice>

            <company name="ABC Corporation"/>

                  invoice data 1

    </invoice>

    <invoice>

            <company name="XYZ Inc"/>

                  invoice data 2

    </invoice>

</invoices>

and the decollation mission contains the following statements,

ON CLASS  X

   PRINT/CDAM PARAMETERS = ASSOC=XML,XMLSEP=invoice

DO SET %%COMPANY =  </invoice/company/@name>

DO USER = %%COMPANY

DO NAME = INVOICE REPORT

the resulting report entries contain the following:

When the report entries are retrieved through Control-D/Page on Demand, the following are added to each report entry contents:

Parent Topic

Decollation of XML Reports