surendra ka

surendra ka

  • NA
  • 1
  • 12.5k

Sorting Xml Elements in C#.Net

Mar 16 2013 4:10 AM
Hi i'm having an xml document below like this
<Table>
    <bankname>Canara</bankname>
    <accountid>1</accountid>
    <balance>56789</balance>
  </Table>
  <Table>
    <accountid>0</accountid>
    <bankname>Canara</bankname>
    <balance>56789</balance>
  </Table>
  <Table>
    <accountid>302</accountid>
    <bankname>Canara</bankname>
    <balance>56789</balance>
  </Table>
  <Table>
    <accountid>309</accountid>
    <bankname>Canara</bankname>
    <balance>56789</balance>
  </Table>
  <Table>
    <accountid>310</accountid>
    <bankname>Canara</bankname>
    <balance>56789</balance>
  </Table>
  <Table>
    <accountid>0</accountid>
    <bankname>Canara</bankname>
    <balance>56789</balance>
  </Table>
  <Table>
    <bankname>Canara</bankname>
    <accountid>1</accountid>
    <balance>56789</balance>
  </Table>
  <Table>
    <accountid>302</accountid>
    <bankname>Canara</bankname>
    <balance>56789</balance>
  </Table>
  <Table>
    <accountid>309</accountid>
    <bankname>Canara</bankname>
    <balance>56789</balance>
  </Table>
  <Table>
    <accountid>310</accountid>
    <bankname>Canara</bankname>
    <balance>56789</balance>
  </Table>

I want to order by the document by accountid, and save back

Answers (2)