For example, you have a JavaScript file (.js) that contains the following code:
function pullXHtml() {
var xml = new ActiveXObject("Msxml2.DOMDocument.4.0");
xml.async = 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'.
Error 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.