当前位置: 首页 > 网络学院 > XML相关教程 > XML DOM > DOM 介绍
The XML Document Object Model defines a standard way for accessing and manipulating XML documents.
XML文档对象模型(XML DOM)定义了一个关于XML文档访问和操作的标准方式。
Before you continue you should have a basic understanding of the following:
在你继续后面的教程学习之前,你必须掌握下述语言的基本知识:
如想进一步学习,可以参阅我们的教程首页
"The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."
W3C文件对象模型(DOM)可以看作是一个平台或一个中立的语言界面,它允许程序和脚本对文档内容、文档结构、文档样式进行动态地访问和更新。
The W3C DOM provides a standard set of objects for HTML and XML documents, and a standard interface for accessing and manipulating them.
W3C DOM提供了一组描述HTML及XML文件的标准对象和一个用来访问和操作这类文件的标准界面。
The W3C DOM is separated into different parts (Core, XML, and HTML) and different levels (DOM Level 1/2/3):
DOM分为3部分(Core核心, XML, 和 HTML)及不同等级(DOM 等级 1/2/3)。
The DOM views XML documents as a tree-structure. All elements; their containing text and their attributes, can be accessed through the DOM tree. Their contents can be modified or deleted, and new elements can be created. The elements, their text, and their attributes are all known as nodes.
DOM将XML文档作为树结构来查看。所有的元素;它们所包含的文本以及它们的属性,可通过DOM树来进行访问。它们的内容可以被修改或删除,新内容也可被创建。元素、它们的文本以及它们的属性均被视为节点。