当前位置: 首页 > 网络学院 > XML相关教程 > XML DOM > DOM 节点树

XML DOM
DOM Attribute
DOM Text
DOM CDATA
DOM Comment
DOM HttpRequest
DOM ParseError
DOM 校验器
DOM 介绍
DOM 摘要
DOM 案例
DOM 节点树
DOM 访问节点树
DOM 节点信息
DOM 文档执行
DOM 节点导航

XML DOM 中的 DOM 节点树


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

All the nodes in a node tree have relationships to each other.
节点树中的所有节点都彼此关联。


What is a Node Tree?
什么是节点树?

A node tree shows an XML document as a set of nodes and the connections between them.
节点树以一组节点的形式展示了整个XML文档,并指明了它们之间的连接关系。

  • In a node tree, the top node is called the root
    在一个节点数中,顶部节点又称为根节点
  • Every node, except the root, has exactly one parent node
    除了根节点之外,每个节点都至少包含一个父类节点
  • A node can have any number of children
    一个节点可以包含任意数量的子类节点
  • A leaf is a node with no children
    不包含子类节点的节点称为leaf
  • Siblings are nodes with the same parent
    同属节点拥有相同的父类节点

Look at the following XML file: books.xml.
请看看下面这份XML文件:books.xml

The following image illustrates a part of the node tree and the relationship between the nodes in the XML file above:
下面这张图指明了节点树的一部分,并勾画了上述xml文件内节点之间的关系:

Node tree

评论 (0) All

登陆 | 还没注册?