Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sample XML :-
XML
<SampleXML>
  <Table1>
    <Row Col1="Irfan" Col2 = "Ahmed" Col3="Khan"/>
    <Row Col1="Imran" Col2 = "Ahmed" Col3="Khan" Col4="Khan"/>
  </Table1>
  <Table2>
    <Row Col1="AP" Col2="Hyderabad" Col3="Secunderabad"/>
    <Row Col1="MH" Col2="Mumbai" Col3="Andheri"/>
  </Table2>
  <Table3>
    <Row Col1="AP1" Col2="Hyderabad1" Col3="Secunderabad1"/>
    <Row Col1="MH1" Col2="Mumbai1" Col3="Andheri1"/>
  </Table3>
</SampleXML>


Q: Need to Read the Above XML which XML Path may vary Time to time
Result should be
Table1
Col1 Col2 Col3
Irfan Ahmed khan
Imran Ahmed khan

Table2

Col1 Col2 Col3
AP Hyderabad Secundrabad
MH Mumbai Andheri
Posted

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