Root Node : Xml Node : XML C# Examples


C# Examples » XML » Xml Node »

 

Root Node









    
using  System;
using  System.Xml;

class  XmlWriterSamp
{
    static  void  Main(string[]  args)
    {
                XmlDocument  xmlDoc  =  new  XmlDocument();
                xmlDoc.LoadXml("<Record>  Some  Value  </Record>");
                
                XmlElement  root  =  xmlDoc.DocumentElement;
                string  str  =  root.ToString();

        xmlDoc.RemoveAll();

        xmlDoc.Save(Console.Out);
    }        
  
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml Node