由网友(杯酒醉)分享简介:我有code以下行:XDocument formConfiguration = XDocument.Load(ConfigurationManager.AppSettings["XMLFileURL"]);我得到以下异常消息:I get the following exception message:引用了未声明...
我有code以下行:
XDocument formConfiguration = XDocument.Load(ConfigurationManager.AppSettings["XMLFileURL"]);
我得到以下异常消息:
I get the following exception message:
引用了未声明的实体NBSP
Reference to undeclared entity 'nbsp'
有没有&放大器; NBSP;
在XML序列。有没有&安培;
字符的XML。当这哪是哪里来的?
There are no
sequences in the XML. There are no &
characters in the XML. Where could this be coming from?
谢谢, 查尔斯
推荐答案
找到了答案; XDocument.Load工作更好地与文件路径,而不是URL。它的工作原理吧。谢谢大家。
Found the answer; XDocument.Load works better with a file path rather than a URL. It works now. Thanks everyone.
相关推荐
最新文章