Output XML to console
In this chapter you will learn:
Output XML to console
using System;/* j ava 2 s . c o m*/
using System.Xml;
class MainClass
{
static void Main(string[] args)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml("<Record> write something</Record>");
xmlDoc.Save(Console.Out);
}
}
The code above generates the following result.
Next chapter...
What you will learn in the next chapter: