XML C#

using System;
using System.IO;
using System.Xml;
using System.Text;
public class Sample {
  public static void Main() {
        using (XmlWriter writer = XmlWriter.Create(Console.Out))
        {
            writer.WriteStartElement("book");
            writer.WriteElementString("price", "1.9");
            writer.WriteEndElement();
            writer.Flush();
        }
   }
}