我有以下的XML文档:
<?xml version="1.0" encoding="UTF-8"?>
<Offices id="0" enabled="false">
<office />
</Offices>
当我尝试通过C#访问它:
XmlDocument doc = new XmlDocument();
doc.LoadXml(HttpContext.Current.Server.MapPath("officeList.xml"));
我遇到了这个错误:
根级别的数据无效。第1行,第1个位置。
这行代码有什么问题?