Skip to Content
0
Former Member
Jul 16, 2008 at 06:06 AM

how to display the xml content into my datagrid

479 Views

Hi Experts,

i have created a webservice for sales quotation through DI-Server.iam able to add a new sales quotation through my coding & iam able to get the sales quotation based on the DOcEntry in an *XML file*.

The xml file that i got using DOCENTRY is in this way:--

<?xml version="1.0" encoding="utf-8" ?> 
- <BOM>
- <BO>
- <AdmInfo>
  <Object>oRecordset</Object> 
  </AdmInfo>
- <OQUT>
- <row>
  <DocEntry>8</DocEntry> 
  <DocNum>8</DocNum> 
  <DocDate>20080715</DocDate> 
  <DocDueDate>20080815</DocDueDate> 
  <CardCode>C0003</CardCode> 
  <CardName>HP India</CardName> 
  <DocTotal>14500.000000</DocTotal>
  <ItemCode>A00006</ItemCode> 
  <Dscription>HP Officejet 7310 All-in-One</Dscription> 
  <Quantity>1.000000</Quantity> 
   <Price>14500.000000</Price> 
  <Currency>INR</Currency> 
   <DiscPrcnt>10.000000</DiscPrcnt> 
  <LineTotal>14500.000000</LineTotal> 
   </row>
  </OQUT>
  </BO>
  </BOM>

Now the problem is from this xml content i should display the values in my datagrid like:

DocEntry CardCode DocDueDate ItemCode Dscription Qty Total

8--


C0003
20081116
-- A00006 -HP-off jet -2 --- 1000

can anybody suggest me some ideas that how to get the SPECIFIED values into my datagrid...........

regards,

shangai.