This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2016.
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.
Also inherits properties from: Document.
Also inherits methods from: Document.
| Specification |
|---|
| DOM> # xmldocument> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
XMLDocument |
341–34Implemented as an alias forDocument. |
12 | 1 | 21≤12.1–21Implemented as an alias forDocument. |
103–10Implemented as an alias forDocument. |
3418–34Implemented as an alias forDocument. |
4 | 21≤12.1–21Implemented as an alias forDocument. |
101–10Implemented as an alias forDocument. |
2.01.0–2.0Implemented as an alias forDocument. |
371–37Implemented as an alias forDocument. |
101–10Implemented as an alias forDocument. |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument