--- title: XMLDocument slug: Web/API/XMLDocument tags: - API - DOM - XML - 参考 - 接口 translation_of: Web/API/XMLDocument ---
{{APIRef("DOM")}}
The XMLDocument interface represents an XML document. It inherits from the generic {{DOMxRef("Document")}} and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.
{{InheritanceDiagram}}
Also inherits properties from: {{DOMxRef("Document")}}
Also inherits methods from: {{DOMxRef("Document")}}
规范 | 状态 | 备注 |
---|---|---|
{{SpecName("DOM WHATWG", "#xmldocument", "XMLDocument")}} | {{Spec2("DOM WHATWG")}} | 没有变化。 |
{{SpecName("DOM4", "#xmldocument", "XMLDocument")}} | {{Spec2("DOM4")}} | 初步定义。 |
{{Compat("api.XMLDocument")}}