Create XElement with namespace : Namespace « XML LINQ « C# / C Sharp
- C# / C Sharp
- XML LINQ
- Namespace
Create XElement with namespace
using System;
using System.Linq;
using System.Xml.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass{
public static void Main(){
XNamespace aw = "http://www.domain.com";
XElement root = new XElement(aw + "Root");
Console.WriteLine(root);
}
}
Related examples in the same category