Create Xml Node from String - CSharp System.Xml

CSharp examples for System.Xml:XML Node

Description

Create Xml Node from String

Demo Code

// Permission is hereby granted, free of charge, to any person obtaining
using System.Xml;
using System.Globalization;
using System.Collections.Generic;
using System;/*from ww w  . j a  va 2 s  .  c o m*/

public class Main{
        public static XmlNode CreateXmlNode(string xml)
        {
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(xml);
            return doc.FirstChild;
        }
}

Related Tutorials