Mega Code Archive

 
Categories / C# Book / 05 LINQ XML
 

0529 Load and parse

Load and parse Xml documentation from a file by using XElement using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Xml.Linq; class Program { static void Main() { XElement fromFile = XElement.Load(@"e:\somefile.xml"); } }