String To Xml Document - CSharp System.Xml

CSharp examples for System.Xml:XML Document

Description

String To Xml Document

Demo Code


using System.Xml;

public class Main{
        internal static XmlDocument ToXmlDocument(string xml)
        {/*w  ww . j a v  a 2s .  c om*/
            var xmlDocument = new XmlDocument();
            xmlDocument.LoadXml(xml);

            return xmlDocument;
        }
}

Related Tutorials