7
Answers

What is the best way to display XML file in a table?

Ask a question
r p

r p

11y
1.1k
1
I have an XML file as follows - 

<bookstore>

<book>
<title>
The Autobiography of Benjamin Franklin
</title>
<price>
8.99
</price>
</book>

<book>
<title>
The Confidence Man
</title>
<price>
11.99
</price>
</book>

</bookstore>

I have to display the content in the above XML in a Table/Gridview (Titles for the Table - Price|Title). 
What is the best way to display the above content in a table using ASP.NET(C#)?

Answers (7)