Mega Code Archive

 
Categories / C# / XML LINQ
 

Returns the indented XML for this node

using System; using System.IO; using System.Xml; using System.Xml.Linq; using System.Collections; using System.Collections.Generic; public class MainClass{    public static void Main(){         XElement xmlTree = new XElement("Root",             new XElement("A1", 1)         );         Console.WriteLine(xmlTree);    } }