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.
XMLDocument
Property
Also inherits properties from: Document
-
XMLDocument.async
Non-Standard Deprecated -
Used with
XMLDocument.load()
to indicate an asynchronous request.
Methods
Also inherits methods from: Document
-
XMLDocument.load()
Non-Standard Deprecated -
Loads an XML 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-34
Implemented as an alias for
Document .
|
12
|
1
|
11
|
21
≤12.1-21
Implemented as an alias for
Document .
|
10
3-10
Implemented as an alias for
Document .
|
37
1-37
Implemented as an alias for
Document .
|
34
18-34
Implemented as an alias for
Document .
|
4
|
21
≤12.1-21
Implemented as an alias for
Document .
|
10
1-10
Implemented as an alias for
Document .
|
2.0
1.0-2.0
Implemented as an alias for
Document .
|
async |
No
|
No
|
1-68
See
bug 1328138 for removal.
|
No
|
No
|
No
|
No
|
No
|
4-68
See
bug 1328138 for removal.
|
No
|
No
|
No
|
load |
No
|
No
|
3-68
See
bug 332175 for removal.
1-3
Before version 3, Firefox supported cross-origin loads, even in cases where this would violate CORS.
|
No
|
No
|
No
|
No
|
No
|
4-68
See
bug 332175 for removal.
|
No
|
No
|
No
|
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument