XmlDocument.LoadXml(String xmlString)
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); } }