开发者

Why do I need resolveexternals set to false?

I am using MSXML3 and have loaded an xml document which is a HT开发者_JAVA技巧ML page. I found that if I do not set the resolveExternals property to false (and validateOnParse to false), I get the following error:

"The server did not understand the request, or the request was invalid.' 'Error processing resource 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'.'

Can anyone explain why I need resolveExternals set to false?


The parser is most likely trying to load that resource (the .dtd) from the remote site w3.org, and failing. Do you have a net connection from that process (perhaps with appropriate proxy configuration) ?

You should be able to specify a local copy of the .dtd to load instead if you don't want your process to load this remotely (usually a good idea).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜