Page 1 of 1

Server XML Output Stage Structure

Posted: Tue Dec 07, 2021 4:01 pm
by gsbrown
Writing a simple DS Server job using XML Output to produce this

Code: Select all

<payment>
                <jeweler_code>15498</jeweler_code>
                <invoices>
                                <invoice>
                                                <invoice_no>50000000005</invoice_no>
                                </invoice>
                                <invoice>            
                                                <invoice_no>50000000007</invoice_no>
                                </invoice>
                </invoices>
                <type>CHEC</type>
                <payment_no>123469</payment_no>
                <payment_date>2021-11-26</payment_date>
</payment>
However, it's producing this and can't figure out how to make it structure <invoice> repeated like above.
Any ideas how to specifically control that?

Code: Select all

<payment>
                <jeweler_code>15498</jeweler_code>
                <invoices>
                                <invoice>
                                                <invoice_no>50000000005</invoice_no>
                                                <invoice_no>50000000007</invoice_no>
                                </invoice>
                </invoices>
                <type>CHEC</type>
                <payment_no>123469</payment_no>
                <payment_date>2021-11-26</payment_date>
</payment>