XML C#

using System;
using System.IO;
using System.Xml;
using System.Xml.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass{
   public static void Main(){
         XmlTextWriter w = new XmlTextWriter(Console.Out);
         w.WriteStartElement("x","node","123");
         w.WriteAttributeString("xmlns","x",null,"abc");
  }
}