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.
On this page
XMLDocument
Property
Also inherits properties from: Document.
Instance methods
Also inherits methods from: Document.
Specifications
| Specification |
|---|
| DOM Standard # xmldocument |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
XMLDocument |
34
1–34Implemented as an alias forDocument.
|
12 | 1 | 11 | 21
≤12.1–21Implemented as an alias forDocument.
|
10
3–10Implemented as an alias forDocument.
|
37
1–37Implemented as an alias forDocument.
|
34
18–34Implemented as an alias forDocument.
|
4 | 21
≤12.1–21Implemented as an alias forDocument.
|
10
1–10Implemented as an alias forDocument.
|
2.0
1.0–2.0Implemented as an alias forDocument.
|
See also
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument