Convert String To Xml Document - CSharp System.Xml

CSharp examples for System.Xml:XML Document

Description

Convert String To Xml Document

Demo Code


using System.Xml;

public class Main{
        public static XmlDocument ToXmlDocument(string xml)
        {/*from  ww w .j a va 2s .c o  m*/
            var xmlDocument = new XmlDocument();
            xmlDocument.LoadXml(xml);

            return xmlDocument;
        }
}

Related Tutorials