aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/xmldocument/index.html
blob: 4bac602b27ec00eac44c2f65719ee50feb684ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
title: XMLDocument
slug: Web/API/XMLDocument
tags:
  - API
  - DOM
  - XML
  - 参考
  - 接口
translation_of: Web/API/XMLDocument
---
<p>{{APIRef("DOM")}}</p>

<p>The <strong>XMLDocument</strong> 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.</p>

<p>{{InheritanceDiagram}}</p>

<h2 id="属性">属性</h2>

<p><em>Also inherits properties from: {{DOMxRef("Document")}}</em></p>

<dl>
 <dt>{{DOMxRef("XMLDocument.async")}} {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
 <dd>Used with {{DOMxRef("XMLDocument.load()")}} to indicate an asynchronous request.</dd>
</dl>

<h2 id="方法">方法</h2>

<p><em>Also inherits methods from: {{DOMxRef("Document")}}</em></p>

<dl>
 <dt>{{DOMxRef("XMLDocument.load()")}} {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
 <dd>Loads an XML document.</dd>
</dl>

<h2 id="规范">规范</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">规范</th>
   <th scope="col">状态</th>
   <th scope="col">备注</th>
  </tr>
  <tr>
   <td>{{SpecName("DOM WHATWG", "#xmldocument", "XMLDocument")}}</td>
   <td>{{Spec2("DOM WHATWG")}}</td>
   <td>没有变化。</td>
  </tr>
  <tr>
   <td>{{SpecName("DOM4", "#xmldocument", "XMLDocument")}}</td>
   <td>{{Spec2("DOM4")}}</td>
   <td>初步定义。</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>



<p>{{Compat("api.XMLDocument")}}</p>

<h2 id="另请参见">另请参见</h2>

<ul>
 <li><a href="/zh-CN/docs/Web/API/Document_Object_Model">DOM 接口索引</a></li>
</ul>