SyntaxFix
Write A Post
Hire A Developer
Questions
This:
doc.LoadXml(HttpContext.Current.Server.MapPath("officeList.xml"));
should be:
doc.Load(HttpContext.Current.Server.MapPath("officeList.xml"));
LoadXml() is for loading an XML string, not a file name.
LoadXml()