Create XML Node - CSharp System.Xml

CSharp examples for System.Xml:XML Node

Description

Create XML Node

Demo Code


using System.Xml;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from   ww w.ja  v  a2s .  com*/

public class Main{
        internal static XmlNode CreateNode(XmlDocument xDoc,  string Name, string InnerText)
        {
            XmlNode xNode = xDoc.CreateElement(Name);
            xNode.InnerText = InnerText;
            return xNode;
        }
}

Related Tutorials