Click here to Skip to main content
15,942,934 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,


I exported the tally files into XML files.Then I want to convert this XML file to gridview in c#.net.plz give me the idea.

//Below is the sample XMLcode//
<envelope>
<HEADER>
<tallyrequest>Import Data</tallyrequest>
</HEADER>
<BODY>
<importdata>
<requestdesc>
<reportname>Vouchers</reportname>
<staticvariables>
<svcurrentcompany>WIPRO</svcurrentcompany>
</staticvariables>
</requestdesc>
<requestdata>
<tallymessage xmlns:udf="TallyUDF">
 <voucher remoteid="4335830b-ddaa-45bd-8a8d-72d5467bcf58-00000001" vchtype="Payment" action="Create">
  <date>20080401</date>
  <guid>4335830b-ddaa-45bd-8a8d-72d5467bcf58-00000001</guid>
  <narration>2000</narration>
  <vouchertypename>Payment</vouchertypename>
  <vouchernumber>1</vouchernumber>
  <partyledgername>CREDIT1</partyledgername>
  <cstformissuetype />
  <cstformrecvtype />
  <fbtpaymenttype>Default</fbtpaymenttype>
  <vchgstclass />
  <diffactualqty>No</diffactualqty>
  <audited>No</audited>
  <forjobcosting>No</forjobcosting>
  <isoptional>No</isoptional>
  <effectivedate>20080401</effectivedate>
  <useforinterest>No</useforinterest>
  <useforgainloss>No</useforgainloss>
  <useforgodowntransfer>No</useforgodowntransfer>
  <useforcompound>No</useforcompound>
  <alterid> 1</alterid>
  <exciseopening>No</exciseopening>
  <iscancelled>No</iscancelled>
  <hascashflow>Yes</hascashflow>
  <ispostdated>No</ispostdated>
  <usetrackingnumber>No</usetrackingnumber>
  <isinvoice>No</isinvoice>
  <mfgjournal>No</mfgjournal>
  <hasdiscounts>No</hasdiscounts>
  <aspayslip>No</aspayslip>
  <isdeleted>No</isdeleted>
  <asoriginal>No</asoriginal>
  <allledgerentries.list>
   <ledgername>CREDIT1</ledgername>
   <gstclass />
   <isdeemedpositive>Yes</isdeemedpositive>
   <ledgerfromitem>No</ledgerfromitem>
   <removezeroentries>No</removezeroentries>
   <ispartyledger>Yes</ispartyledger>
   <amount>-30000.00</amount>
  </allledgerentries.list>
  <allledgerentries.list>
   <ledgername>CAPITAL ACCOUNTS</ledgername>
   <gstclass />
   <isdeemedpositive>Yes</isdeemedpositive>
   <ledgerfromitem>No</ledgerfromitem>
   <removezeroentries>No</removezeroentries>
   <ispartyledger>No</ispartyledger>
   <amount>-40000.00</amount>
  </allledgerentries.list>
  <allledgerentries.list>
   <ledgername>CREDIT2</ledgername>
   <gstclass />
   <isdeemedpositive>Yes</isdeemedpositive>
   <ledgerfromitem>No</ledgerfromitem>
   <removezeroentries>No</removezeroentries>
   <ispartyledger>Yes</ispartyledger>
   <amount>-50000.00</amount>
   <billallocations.list>
    <name>RAMESH</name>
    <billtype>New Ref</billtype>
    <amount>-50000.00</amount>
   </billallocations.list>
  </allledgerentries.list>
  <allledgerentries.list>
   <ledgername>CAPITAL ACCOUNTS</ledgername>
   <gstclass />
   <isdeemedpositive>Yes</isdeemedpositive>
   <ledgerfromitem>No</ledgerfromitem>
   <removezeroentries>No</removezeroentries>
   <ispartyledger>No</ispartyledger>
   <amount>-60000.00</amount>
  </allledgerentries.list>
  <allledgerentries.list>
   <ledgername>Cash</ledgername>
   <gstclass />
   <isdeemedpositive>No</isdeemedpositive>
   <ledgerfromitem>No</ledgerfromitem>
   <removezeroentries>No</removezeroentries>
   <ispartyledger>Yes</ispartyledger>
   <amount>180000.00</amount>
  </allledgerentries.list>
  <udf:booknumber.list desc="`BOOKNUMBER`" islist="YES">
    <udf:booknumber desc="`BOOKNUMBER`">1</udf:booknumber>
  </udf:booknumber.list>
 </voucher>
</tallymessage>
</requestdata>
</importdata>
</BODY>
</envelope>
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900