Skip to Content
0
Former Member
Aug 12, 2010 at 06:08 AM

Internal table to xml format

14 Views

Hai all,

I have to convert internal table to xml format. Here is the sample Xml format.

http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ACES_DLR.xsd">

<INVOICE-HEADER>

<INVOICE-PARTICULARS SL-NO="1">

<INVOICE-NUMBER>12365897777777771541</INVOICE-NUMBER>

<INVOICE-DATE>15/11/2009</INVOICE-DATE>

<INVOICE-ITEMS>

<CETSH-NUMBER>01019020</CETSH-NUMBER>

<QUANTITY-CODE>U</QUANTITY-CODE>

<QUANTITY>1235.00</QUANTITY>

<AMOUNT-OF-DUTY-INVOLVED>226584.00</AMOUNT-OF-DUTY-INVOLVED>

</INVOICE-ITEMS>

<INVOICE-ITEMS>

<CETSH-NUMBER>84369100</CETSH-NUMBER>

<QUANTITY-CODE>KG</QUANTITY-CODE>

<QUANTITY>3368.00</QUANTITY>

<AMOUNT-OF-DUTY-INVOLVED>99653.00</AMOUNT-OF-DUTY-INVOLVED>

</INVOICE-ITEMS>

</INVOICE-PARTICULARS>

<INVOICE-PARTICULARS SL-NO="2">

<INVOICE-NUMBER>12556523655542154445</INVOICE-NUMBER>

<INVOICE-DATE>11/10/2009</INVOICE-DATE>

<INVOICE-ITEMS>

<CETSH-NUMBER>63064900</CETSH-NUMBER>

<QUANTITY-CODE>U</QUANTITY-CODE>

<QUANTITY>456.00</QUANTITY>

<AMOUNT-OF-DUTY-INVOLVED>2236.00</AMOUNT-OF-DUTY-INVOLVED>

</INVOICE-ITEMS>

</INVOICE-PARTICULARS>

</INVOICE-HEADER>

</ACES>

In the above Sample <INVOICE-ITEMS> child element came two times for the parent elemnt <INVOICE-PARTICULARS>. It is possible ?.

How to pass attribute values ?.

Pls help me to do.

Thanks in Advance.