XML document is widely used file in the projects where we can store the small or big data such as configuration settings or last used data on the form. .Net framework provides various way to create the XML files (such as DataSet.WriteXML), but my concern it is so easy to create the XML document by … Continue reading Create the XML document using LINQ to XML in C#
In the following example i will show you how you can display data in a HTML table from an XML document.
An XML(Extensible markup Language) is a meta-markup language that provides a format for describing structured data. It is necessary that an XML document must have the following conditions:
.Net provide us some built in functions to read a XML file but those all will work if our xml file have single table and very simple format. If we have multiple nested tables(Table within Table) in XML the we need to use C# foreach loop to find out our required data.
This is very simple example, but this XML document contains all the important parts that you will find in all XML documents.