Parse XML file
In this chapter you will learn:
Load xml from xml file directly
using System;//from j ava2 s .c o m
using System.Xml;
class MainClass
{
static void Main(string[] args)
{
string filename = @"C:\books.xml";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(filename);
xmlDoc.Save(Console.Out);
}
}
Next chapter...
What you will learn in the next chapter: