2
Answers

Sorting Xml Elements in C#.Net

surendra ka

surendra ka

11y
6.8k
1
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)