Create XElement Empty - CSharp System.Xml

CSharp examples for System.Xml:XML Element

Description

Create XElement Empty

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  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));
        }
}

Related Tutorials