CSharp examples for System.Xml:XML Document
Creates the XML document element.
using System.Xml.Serialization; using System.IO;/*from w ww.j a v a 2 s . co m*/ using System.Xml; using System.Text.RegularExpressions; using System; public class Main{ /// <summary> /// Creates the document element. /// </summary> /// <param name="xml">The XML.</param> /// <returns></returns> /// <remarks></remarks> public static XmlElement CreateDocumentElement(string xml) { return CreateDocument(xml).DocumentElement; } }