CSharp examples for System.Xml:XML Element
Create Empty XElement Leaf
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)); } }