XMLDocument

Baseline Widely available

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.

EventTarget Node Document XMLDocument

Instance properties

Also inherits properties from: Document.

Instance methods

Also inherits methods from: Document.

Specifications

Specification
DOM
# xmldocument

Browser compatibility

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
Chrome – Partial support
Chrome 1 – 33 (Release date: 2008-12-11)
footnote Partial support
footnote Implemented as an alias for Document.
Chrome – Full support
Chrome 34 (Release date: 2014-04-08)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 1 (Release date: 2004-11-09)
footnote Full support
Opera – Partial support
Opera 12.1 – 20 (Release date: 2012-11-20)
footnote Partial support
footnote Implemented as an alias for Document.
Opera – Full support
Opera 21 (Release date: 2014-05-06)
footnote Full support
Safari – Partial support
Safari 3 – 9.1 (Release date: 2007-10-26)
footnote Partial support
footnote Implemented as an alias for Document.
Safari – Full support
Safari 10 (Release date: 2016-09-20)
footnote Full support
Chrome Android – Partial support
Chrome Android 18 – 33 (Release date: 2012-06-27)
footnote Partial support
footnote Implemented as an alias for Document.
Chrome Android – Full support
Chrome Android 34 (Release date: 2014-04-02)
footnote Full support
Firefox for Android – Full support
Firefox for Android 4 (Release date: 2011-03-29)
footnote Full support
Opera Android – Partial support
Opera Android 12.1 – 20 (Release date: 2012-10-09)
footnote Partial support
footnote Implemented as an alias for Document.
Opera Android – Full support
Opera Android 21 (Release date: 2014-04-22)
footnote Full support
Safari on iOS – Partial support
Safari on iOS 1 – 9.3 (Release date: 2007-06-29)
footnote Partial support
footnote Implemented as an alias for Document.
Safari on iOS – Full support
Safari on iOS 10 (Release date: 2016-09-13)
footnote Full support
Samsung Internet – Partial support
Samsung Internet 1 – 1.6 (Release date: 2013-04-27)
footnote Partial support
footnote Implemented as an alias for Document.
Samsung Internet – Full support
Samsung Internet 2 (Release date: 2014-10-17)
footnote Full support
WebView Android – Partial support
WebView Android 1 – 4.4.3 (Release date: 2008-09-23)
footnote Partial support
footnote Implemented as an alias for Document.
WebView Android – Full support
WebView Android 37 (Release date: 2014-09-03)
footnote Full support
WebView on iOS – Partial support
WebView on iOS 1 – 9.3 (Release date: 2007-06-29)
footnote Partial support
footnote Implemented as an alias for Document.
WebView on iOS – Full support
WebView on iOS 10 (Release date: 2016-09-13)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Has more compatibility info.

See also