How to stop Eclipse IDE from trying to download DTDs for validation?
I have a XHTML-file using the following doctype-definition:
`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">`
Eclipse is trying to validate the file by using the referenced dtd file, which results in this error:
ParseException: Error validating the model: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
The reason is an intended error response, like described here:
W3C's Excessive DTD Traffic
So I tried to stop Eclipse from trying to download the file by disabling HTML validation, but this didn't help.
How can I get rid of the error message and stop Eclipse from trying to download the DTD-file?
edit: Eclipse-version is 开发者_StackOverflowGalileo 3.5
Which Eclipse version do you use? In 3.5 (Galileo), as default, the DTD for HTML/XHTML will be stored as local file and you won't get such problem.
You can also deactivate the XML validation, but not only the DTD check will be deactivated, but all XML validation.
EDIT: check the Preferences -> XML -> XML Catalog and check if the file has already referenced to local file. If not, you can add it yourself
精彩评论