load xml file into xmldocument c# code example Example: c# xmldocument from file XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("your file path");