When you visit a Web site or run an application that loads XHTML documents by using Microsoft XML Core Services (MSXML), MSXML will send requests to the World Wide Web Consortium (W3C) to fetch well-known Document Type Definition (DTD) files every time. This behavior may bring lots of traffic to the W3C server. Sometimes, you may find the XHTML files are not loaded successfully because the DTD requests are blocked by the W3C server.
For example, you have a JavaScript file (.js) that contains the following code:When you run the JavaScript file, the file loads an XHTML document by using MSXML. If you do not have this update installed, you may receive the following error message when you run the JavaScript file if the DTD requests are blocked by the W3C server:
For example, you have a JavaScript file (.js) that contains the following code:
function pullXHtml() {
var xml = new ActiveXObject("Msxml2.DOMDocument.6.0");
xml.async = false;
xml.resolveExternals = true;
xml.validateOnParse = false;
xml.setProperty("ProhibitDTD", false);
xml.loadXML(
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" +
"<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'><head><title>simple document</title></head>" +
"<body><p>a simple paragraph</p></body></html>");
if (xml.parseError.errorCode != 0) {
var myErr = xml.parseError;
WScript.Echo("ERROR:" + myErr.reason);
} else {
WScript.echo("The XHTML document was loaded successfully.");
}
}
pullXHtml();
ERROR: The server did not understand the request, or the request was invalid.
Error processing resource
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'.
After you install this update, the JavaScript file will run successfully and you will receive the following message:NoteError processing resource
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'.
- After you apply this update, MSXML caches the DTD files locally to reduce the number of requests that are sent to the W3C server.
- After you install this update, you may be prompted to restart your computer.
- If you install the update in Windows Vista, Windows Server 2008, or in Windows 7, you must run the setup file as an administrator.
- For more information about XHTML and the Document Type Definitions (DTD), see the "More information" section.