Creating XML content using LINQ element in c#

Jitendrasoft09
Posted by Jitendrasoft09 under C# category on | Points: 40 | Views : 955
using System;
using System.Xml.Linq;

class JkExample {

static void Main(string[] args) {


XElement myFNameElement = new XElement("FName", "Jitendra");
XElement myLNameElement = new XElement("LName", "Kumar");


Console.WriteLine(myFNameElement);
Console.WriteLine(myLNameElement);


Console.ReadLine();
}
}

Comments or Responses

Login to post response