Create Empty XElement Leaf - CSharp System.Xml

CSharp examples for System.Xml:XML Element

Description

Create Empty XElement Leaf

Demo Code


using System.Xml.Linq;
using System.Xml;
using System.Text.RegularExpressions;
using System.Text;
using System.Security.Cryptography.X509Certificates;
using System.Linq;
using System.IO;/*from w  w  w  . j a va  2  s .  c  o m*/
using System.Collections.Generic;
using System;

public class Main{
        public static XElement CreateEmptyXElementLeaf(string content)
        {
            return XElement.Parse(string.Format(itemLeafTemplate, content));
        }
}

Related Tutorials