Creating an RTF Template 2-5
reported. Each row of the invoice table will repeat for each invoice that is reported.
XML Input File
Following is the XML file that will be used as input to the Payables Invoice Register
Note: To simplify the example, the XML output shown below has been
modified from the actual output from the Payables report.
<?xml version="1.0" encoding="WINDOWS-1252" ?>
XML files are composed of elements. Each tag set is an element. For example
<INVOICE_DATE></INVOICE_DATE> is the invoice date element. "INVOICE_DATE"
is the tag name. The data between the tags is the value of the element. For example, the
value of INVOICE_DATE is "10-NOV-03".
The elements of the XML file have a hierarchical structure. Another way of saying this
is that the elements have parent-child relationships. In the XML sample, some elements
are contained within the tags of another element. The containing element is the parent
and the included elements are its children.
Every XML file has only one root element that contains all the other elements. In this
example, VENDOR_REPORT is the root element. The elements
LIST_G_VENDOR_NAME, ACCTD_SUM_REP, and ENT_SUM_REP are contained
between the VENDOR_REPORT tags and are children of VENDOR_REPORT. Each
child element can have child elements of its own.