Sample code for 30+ languages & platforms
C#

Load XML from Local FilePath

Demonstrates how to load XML from a local XML file.

Chilkat C# Downloads

C#
bool success = false;

Chilkat.Xml xml = new Chilkat.Xml();

//  Pass either an absolute file path, or a file path relative from the current working directory of the caller.
success = xml.LoadXmlFile("qa_data/hamlet.xml");
if (success == false) {
    Debug.WriteLine(xml.LastErrorText);
    return;
}

Debug.WriteLine("Success.");