DetailPage-MSS-KB

知識庫

文章編號: 973685 - 上次校閱: 2011年1月19日 - 版次: 1.0

 

在此頁中

徵狀

當您造訪的網站,或執行應用程式所載入的 XHTML 文件使用 Microsoft XML 核心服務 (MSXML),MSXML 會傳送要求到全球資訊網協會 (W3C) 擷取已知的文件類型定義 (DTD) 檔案每次。 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:
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&nbsp;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();
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:
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:
The XHTML document was loaded successfully.
附註
  • 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.

解決方案

Update information

How to determine the MSXML version

To determine the MSXML version that is installed on your computer, follow these steps:
  1. Locate the Msxml4.dll file in the following directory:
    C:\Windows\System32
  2. Right-click the Msxml4.dll file, and then click屬性.
  3. 按一下版本tab to see the version information.
    附註In Windows Vista, Windows 7, or Windows Server 2008, click the詳細資料tab instead.

How to obtain this update

This update will be installed automatically by Windows Update. However, you can also install this update manually by downloading the appropriate package. There are several packages that contain this fix. Those packages were released for the following different installation scenarios:
摺疊此表格展開此表格
KB articlesInstallation scenariosUpdate packagesMSXML versionsSupported operating systems
973685  (http://support.microsoft.com/kb/973685/ ) Description of an update for Microsoft XML Core Services 4.0 Service Pack 3
MSXML 4.0 was installed by an application, or manually installed by yourself. To apply this hotfix, you must have MSXML 4.0 SP3 installed.
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=e35f3dd3-1bb7-4c74-aed2-49dbae77546b)
MSXML 4.0 SP3Windows 7; Windows Server 2003 Service Pack 2; Windows Server 2008; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista; Windows Vista Service Pack 1; Windows Vista Service Pack 2; Windows XP Service Pack 2; Windows XP Service Pack 3
973686  (http://support.microsoft.com/kb/973686/ ) Description of an update for Microsoft MSXML Core Services 6.0 Service Pack 2
MSXML 6.0 was installed by an application, or manually installed by yourself. To apply this hotfix, you must have MSXML 6.0 SP2 installed.
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=819352df-cffa-413a-94d1-6213927137f6)
MSXML 6.0 SP2Windows Server 2003 Service Pack 2; Windows XP Service Pack 2
973687  (http://support.microsoft.com/kb/973687/ ) Description of updates for Microsoft MSXML Core Services 3.0 and MSXML Core Services 6.0
MSXML3 and MSXML6 were installed by the operating system
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=1b643267-9116-4258-a53a-5a41426dcbcb)
MSXML3.0 and MSXML  6.0Windows XP SP3
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=4bdcdabe-f1fb-4465-acc3-1db8a5b19491)
MSXML 3.0Windows XP Professional x64 Edition
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=567cc6dc-f5d0-48e4-af0f-148cea6c00f8)
MSXML 3.0Windows Server 2003 SP2
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=6cedb430-1cce-4503-b327-6cfa5dff5932)
MSXML 3.0Windows Server 2003 Service Pack 2 x64 Edition
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=cca1747b-148d-44ed-82ee-245663f26398)
MSXML 3.0Windows Server 2003 Service Pack 2 for Itanium-based Systems
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=8b885659-149b-45eb-a9c3-c58f94e19aa9)
MSXML 3.0 and MSXML 6.0Windows Vista, Windows Vista SP1 and Windows Vista SP2
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=b339502a-fdb3-422b-a300-1471f5eb926e)
MSXML 3.0 and MSXML 6.0Windows Vista 64-bit Editions, Windows Vista 64-bit Editions SP1 and Windows Vista SP2
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=ed45f2d6-694a-4c67-8834-87f892ff85b8)
MSXML 3.0 and MSXML 6.0Windows Server 2008 and Windows Server 2008 SP2
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=60bad052-b9e9-424f-a144-1403162ac413)
MSXML 3.0 and MSXML 6.0Windows Server 2008 x64 Edition and Windows Server 2008 x64 Edition SP2
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=4a2002f3-dd1e-4758-86c0-8f0aba72faa6)
MSXML 3.0 and MSXML 6.0Windows Server 2008 for Itanium-based Systems and Windows Server 2008 for Itanium-based Systems SP2
973688  (http://support.microsoft.com/kb/973688/ ) Description of an update for Microsoft XML Core Services 4.0 Service Pack 2
MSXML 4.0 was installed by an application, or manually installed by yourself. To apply this hotfix, you must have MSXML 4.0 SP2 installed.
摺疊此圖像展開此圖像
下載
Download the update package now. (http://www.microsoft.com/downloads/details.aspx?FamilyId=00bcdf28-2299-4150-964d-88a601e25229)
MSXML 4.0 SP2Windows 7; Windows Server 2003 Service Pack 2; Windows Server 2008; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista; Windows Vista Service Pack 1; Windows Vista Service Pack 2; Windows XP Service Pack 2; Windows XP Service Pack

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591  (http://support.microsoft.com/kb/119591/ ) How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

檔案資訊

The English version of this update has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). 當您檢視檔案資訊時,會將它轉換為本地時間。 To find the difference between UTC and local time, use theTime Zone在索引標籤上,日期和時間item in Control Panel.
所有支援 x86 版的 Windows XP、 Windows Server 2003 的、 Windows Vista,Windows Server 2008 的、 Windows [伺服器] 2008 R2 的及 Windows 7
摺疊此表格展開此表格
檔案名稱檔案版本檔案大小日期時間
Msxml4.dll4.30.2107.01,393,48020 年 7 月 200914: 16
Msxml4r.dll4.30.2100.088,90420 年 7 月 200914: 16

其他相關資訊

文件類型定義相關的詳細資訊,請造訪下列網站:
http://www.w3.org/TR/xhtml1/dtds.html (http://www.w3.org/TR/xhtml1/dtds.html)
關於 XHTML 的詳細資訊,請造訪下列網站:
http://www.w3.org/TR/xhtml1/ (http://www.w3.org/TR/xhtml1/)
MSXML 有關的詳細資訊,請造訪下列 Microsoft 開發人員網路網站:
.aspx http://msdn.microsoft.com/en-us/library/ms763742 (VS.85) (http://msdn.microsoft.com/en-us/library/ms763742(VS.85).aspx)
如需清單 Microsoft XML 剖析器 (MSXML) 版本的詳細資訊,請按一下下列的文件編號,檢視 「 Microsoft 知識庫 」 中的文件:
269238  (http://support.microsoft.com/kb/269238/ ) Microsoft XML 剖析器 (MSXML) 版本的清單

参考

如需詳細資訊,請按一下下列的文件編號,檢視 「 Microsoft 知識庫 」 中的文件::
954459  (http://support.microsoft.com/kb/954459/ ) MS08-069: 描述的 XML 核心服務 6.0 安全性更新: 2008 年 11 月 11
有關軟體更新術語的詳細資訊,請按一下下列的文件編號,檢視 「 Microsoft 知識庫 」 中的文件:
824684  (http://support.microsoft.com/kb/824684/LN/ ) 用來描述 Microsoft 軟體更新標準術語的描述
關鍵字: 
kbsurveynew kbfix kbexpertiseinter kbqfe atdownload kbmt KB973685 KbMtzh
機器翻譯機器翻譯
重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。
按一下這裡查看此文章的英文版本:973685  (http://support.microsoft.com/kb/973685/en-us/ )
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。
共用
其他支援選項
Microsoft Community 支援論壇
直接與我們連絡
尋找 Microsoft 認證合作夥伴
Microsoft 市集