XML C#

using System;
using System.IO;
using System.Xml;
public class Sample {
  public static void Main() {
    XmlDocument doc = new XmlDocument();
    doc.LoadXml("" +
                "C#" +
                "");
    XmlNode root = doc.FirstChild;
    string prefix = root.GetPrefixOfNamespace("urn:samples");
    XmlElement elem = doc.CreateElement(prefix, "style", "urn:samples");
    elem.InnerText = "hardcover";
    root.AppendChild(elem);
    doc.Save(Console.Out);
  }
}