Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Aviod duplication and merge into unique

$
0
0

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


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>