Load xml data from a string : Xml String « XML « C# / CSharp Tutorial






using System;
using System.Xml;

class MainClass
{
  static void Main(string[] args)
  {
    XmlDocument xmlDoc = new XmlDocument();    
    xmlDoc.LoadXml("<Record> write something</Record>");

        xmlDoc.Save(Console.Out);
  }    
 
}

 write something








30.3.Xml String
30.3.1.Load XML data from string and output
30.3.2.Load xml data from a string