Creates the XML document element. - CSharp System.Xml

CSharp examples for System.Xml:XML Document

Description

Creates the XML document element.

Demo Code


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;
      }
}

Related Tutorials