您正位於 MDN Web Docs 的可編輯版本

以 MDN Web Docs 使用者身分檢視: https://developer.mozilla.org/zh-TW/docs/Web/API/XMLDocument

我們的志工尚未將本文翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
您也可以閱讀本文的 English (US) 版本。

The XMLDocument interface represents an XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.

Property

Also inherits properties from: Document

XMLDocument.async   
Used with XMLDocument.load() to indicate an asynchronous request.

Methods

Also inherits methods from: Document

XMLDocument.load()   
Loads an XML document.

Specifications

Specification Status Comment
DOM
The definition of 'XMLDocument' in that specification.
Living Standard No changes.
DOM4
The definition of 'XMLDocument' in that specification.
Obsolete Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
XMLDocumentChrome Full support 34
Full support 34
No support 1 — 34
Notes
Notes Implemented as an alias for Document.
Edge Full support ≤18Firefox Full support 1IE No support NoOpera Full support 21
Full support 21
No support ? — 21
Notes
Notes Implemented as an alias for Document.
Safari Full support 10
Full support 10
No support 3 — 10
Notes
Notes Implemented as an alias for Document.
WebView Android Full support 37
Full support 37
No support 1 — 37
Notes
Notes Implemented as an alias for Document.
Chrome Android Full support 34
Full support 34
No support 18 — 34
Notes
Notes Implemented as an alias for Document.
Firefox Android Full support 4Opera Android Full support 21
Full support 21
No support ? — 21
Notes
Notes Implemented as an alias for Document.
Safari iOS Full support 10
Full support 10
No support 1 — 10
Notes
Notes Implemented as an alias for Document.
Samsung Internet Android Full support 2.0
Full support 2.0
No support 1.0 — 2.0
Notes
Notes Implemented as an alias for Document.
async
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support 1 — 68
Notes
No support 1 — 68
Notes
Notes See bug 1328138 for removal.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support 4 — 68
Notes
No support 4 — 68
Notes
Notes See bug 1328138 for removal.
Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
load
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support 3 — 68
Notes
No support 3 — 68
Notes
Notes See bug 332175 for removal.
No support 1 — 3
Notes
Notes Before version 3, Firefox supported cross-origin loads, even in cases where this would violate CORS.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support 4 — 68
Notes
No support 4 — 68
Notes
Notes See bug 332175 for removal.
Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.
See implementation notes.
See implementation notes.

See also

文件標籤與貢獻者

最近更新: ExE-Boss,