当前位置: 首页 > 网络学院 > XML相关教程 > XML DOM > DOM 介绍

XML DOM
DOM 节点
DOM 节点列表
DOM 解析
DOM 遍历节点树
DOM Mozilla 和 IE
DOM 获取节点
DOM 设置节点
DOM 删除节点
DOM 更换节点
DOM 建立节点
DOM 添加节点
DOM 克隆节点
DOM 节点类型
DOM Node
DOM NodeList
DOM NamedNodeMap
DOM Document
DOM DocumentType
DOM ProcessingInstr
DOM Element

XML DOM 中的 DOM 介绍


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 528 ::
收藏到网摘: n/a

The XML Document Object Model defines a standard way for accessing and manipulating XML documents.
XML文档对象模型(XML DOM)定义了一个关于XML文档访问和操作的标准方式。


What You Should Already Know
你必须具备下述知识

Before you continue you should have a basic understanding of the following:
在你继续后面的教程学习之前,你必须掌握下述语言的基本知识:

  • HTML / XHTML
  • JavaScript
  • XML

如想进一步学习,可以参阅我们的教程首页


What is the DOM?
到底什么是DOM?

"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)。

  • Core DOM - defines a standard set of objects for any structured document
    核心DOM-定义了一组应用于指定结构文档的标准对象。
  • XML DOM - defines a standard set of objects for XML documents
    XML DOM-定义了一组应用于XML文档的标准对象。
  • HTML DOM - defines a standard set of objects for HTML documents
    HTML DOM-定义了一组应用于HTML文档的标准对象。

What is the XML DOM?
何谓XML DOM?

  • The XML DOM is the Document Object Model for XML??
    XML DOM是XML的文件对象模型
  • The XML DOM is platform- and language-independent??
    XML DOM是独立于平台和语言的
  • The XML DOM defines a standard set of objects for XML
    XML DOM定义了一组XML标准对象
  • The XML DOM defines a standard way to access XML documents
    XML DOM定义了访问XML文件的标准方式
  • The XML DOM defines a standard way to manipulate XML documents
    XML DOM定义了处理XML文件的标准方式
  • The XML DOM is a W3C standard
    XML DOM是W3C标准

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树来进行访问。它们的内容可以被修改或删除,新内容也可被创建。元素、它们的文本以及它们的属性均被视为节点。

评论 (0) All

登陆 | 还没注册?