Nafihudheen KT

Nafihudheen KT

  • NA
  • 43
  • 78k

Write and update data from xml file ?

Nov 2 2011 1:44 AM
I want to create an xml file like the following format,

<Category>
  <Sales Title="SalesInvoice">
          <BillNo "Bill No">1220</BillNo>
          <BillDate "Date">1-1-2011</BillDate>
          <TotalAmount "Amount">15000</TotalAmount>
  </Sales>
  <Purchase Title="Purchase Invoice">
          <BillNo "BillNo">1</BillNo>
          <BillDate "Date">1-1-2011</BillDate>
          <TotalAmount "Amount">150</TotalAmount>
  </Purchase>
</Category>


Is any body know the C# code to create, select , and update the above xml file model please help me.



Thanking you,

Answers (5)