Load XML data from string and output : Xml String : XML C# Examples


C# Examples » XML » Xml String »

 

Load XML data from string and output









    
using  System;
using  System.Xml;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        XmlDocument  doc  =  new  XmlDocument();
        doc.LoadXml("<R>  Value  </R>");

        XmlNode  root  =  doc.DocumentElement;
        doc.Save(Console.Out);

        root.RemoveAll();

        doc.Save(Console.Out);
    }
}
    
   
  
   



Output

 Value 


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml String