This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The XMLDocument interface represent 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

This interface has no specific property and doesn't inherit any.

Methods

This interface doesn't add any new methods.

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 AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome No support NoEdge Full support YesFirefox Full support 1IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile Full support YesFirefox Android Full support 4Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
load
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox Full support 3
Notes
Full support 3
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 NoEdge Mobile No support NoFirefox Android Full support 4
Notes
Full support 4
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

Document Tags and Contributors

Contributors to this page: ExE-Boss, sideshowbarker, fscholz, allen-b1, r-o-b, teoli, MHasan, maxmarchuk
Last updated by: ExE-Boss,