To generate a XML document with elements and attributes is easy by using LINQ to XML. LINQ to XML provides the XDocument, XElement and XAttribute classes,with the help of XElement class we can create XML content and create a new XML file using the XDocument class. Continue reading Generate xml document with elements and attributes using LINQ to XML
This article demonstrates how we can make change the value of an elements in xml document using the LINQ. In this example i have a XML file that contains the data of the employees such as name and salary. Continue reading Update the xml file using LINQ in C#
Suppose if you need to generate the XML file from the datagridview data, simply you can use the dataset.WriteXML() function for writing the XML from the dataset object. Continue reading How to write xml from datagridview in C#
In the following example i will show you how you can display data in a HTML table from an XML document. Continue reading How to bind HTML table with an XML document
The basic similarity in the XML file and treeview control is the representation of the data in a hierarchical format. So we can bind the treeview control from the XML file. In this article i will explain you how we can do it. Continue reading Bind Treeview from xml file at runtime in C#
HTML is an excellent tool for displaying hypermedia documents across a network and XML is designed for electronic information provides who want to do things that HTML is not designed for.
Both are the markup languages, Continue reading XML is not replacement of HTML
.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.
Continue reading Read data from XML with Multiple or Nested Tables in C#
In this article we will learn how to read an XML file directly into dataset by using readxml() method of the Dataset class. Continue reading XML and ASP.Net- Read an XML document into dataset
This is very simple example, but this XML document contains all the important parts that you will find in all XML documents.
Continue reading How to write a simple XML document