Get Xml Document from String - CSharp System.Xml

CSharp examples for System.Xml:XML Document

Description

Get Xml Document from String

Demo Code


using System.IO;//from w ww.  j  av  a  2 s.  c  o  m
using System.Xml;
using System.Collections.Generic;
using UnityEngine;

public class Main{
        public static XmlDocument GetXmlDocument(string xmlStirng)
        {
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(xmlStirng);
            return doc;
        }
}

Related Tutorials