Reading XML outer tables

Posted by Sathish on Stack Overflow See other posts from Stack Overflow or by Sathish
Published on 2010-04-29T03:30:50Z Indexed on 2010/04/29 3:37 UTC
Read the original article Hit count: 496

Filed under:

I have an Xml file as shown below in which if i convert this to Dataset, the dataset will contain 3 tables with talble names Table Name1, Table Name2 and Table Name3 but i want to get this information without converting this to dataset Basically i want to get all the outer table names out of my excel. Please help me with the piece of code

<Main Table>
<Table Name1>
  <Something>
  <Something>
  <Something>
  <Something>
</Table Name1>
<Table Name2>
  <Something>
  <Something>
  <Something>
  <Something>
</Table Name2>
<Table Name3>
  <Something>
  <Something>
  <Something>
</Table Name3>
</Main Table>

© Stack Overflow or respective owner

Related posts about c#