Hi exceperts;
I have input xml like, here i want avoid duplicate ID and Merger the data into unquie as per my ouput..
<SN>
<T>
<ID>112</ItemID>
<InvoiceQty>11.0</InvoiceQty>
<Itemcode>110<ItemName>
</T>
<T>
<ID>112</ItemID>
<InvoiceQty>10.00</InvoiceQty>
<Itemcode>l122<ItemName>
</T>
<T>
<ID>471</ItemID>
<InvoiceQty>10.00</InvoiceQty>
<Itemcode>l11<ItemName>
</T>
</SN>
i want oupted like below:
- <Data>
- <Details>
- <Type>
- <NDocuments>
- <Document>
<NCode Code="112" />
<Code Code="447" />
<Code Code="471" />
- <Lines>
- <Line>
<PackageCode Code="112" />
<OrderDocumentCode Code="110" />
<Quantity>10.00</Quantity>
</Line>
- <Line>
<OrderablePackageCode Code="1122" />
<OrderDocumentCode Code="112" />
<Quantity>10.00</Quantity>
104472
</Line>
- <Line>
<OrderablePackageCode Code="111" />
<OrderDocumentCode Code="471" />
<Quantity>10.00</Quantity>
</Line>
</Lines>
</NDocument>
</NDocuments>
</Type>
</Details>
</Data>
thanks