CSharp examples for System.Xml:XML Element
Create XElement Empty
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 ww . j a va2 s . co m using System.Collections.Generic; using System; public class Main{ private static XElement CreateXElementEmpty(string key) { return new XElement("item", new XAttribute("key", key)); } }