XmlTextWriter
using System;
using System.Xml;
class MainClass
{
static void Main(string[] args)
{
XmlTextWriter writer = new XmlTextWriter("C:\\xmlWriterTest.xml", null);
writer.WriteStartDocument();
// Write first element
writer.WriteStartElement("root");
writer.WriteStartElement("r", "RECORD", "urn:record");
// Ends the document.
writer.WriteEndDocument();
writer.Close();
return;
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
-
|