Creates the XML document. - CSharp System.Xml

CSharp examples for System.Xml:XML Document

Description

Creates the XML document.

Demo Code


using System.Xml.Serialization;
using System.IO;//from w w w  . jav  a2  s. c  om
using System.Xml;
using System.Text.RegularExpressions;
using System;

public class Main{
        /// <summary>
        /// Creates the document.   
        /// </summary>
        /// <param name="xml">The XML.</param>
        /// <returns></returns>
        /// <remarks></remarks>
      public static XmlDocument CreateDocument(string xml)
      {
         XmlDocument document = new XmlDocument();
         document.LoadXml(xml);
         return document;
      }
}

Related Tutorials