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

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 NamedNodeMap


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

The nodes in the NamedNodeMap can be accessed through their name.
NamedNodeMap[指定节点映射]中的节点可以通过它们的名称进行访问。

The NamedNodeMap keeps itself up-to-date. If an element is deleted or added, in the node list or the XML document, the list is automatically updated.
NamedNodeMap[指定节点映射]将会自我更新。如果位于节点列表中或XML文档中的一个元素被添加或是删除,那么该列表将会自动更新。

Note: In a named node map, the nodes are not returned in any particular order.
注意:在一个指定的节点映射中,节点不会以任何特定的顺序返回。

IE: Internet Explorer, F: Firefox[火狐], O: Opera, W3C: World Wide Web Consortium (Internet Standard) | 万维网联盟(国际标准)

NamedNodeMap Object Properties
NamedNodeMap[指定节点映射]对象属性

Property
属性
Description
描述
IE F O W3C
length Returns the number of nodes in the list
返回列表中的节点数量
5 1 9 Yes

NamedNodeMap Object Methods
NamedNodeMap[指定节点映射]对象方法

Method
方法
Description
描述
IE F O W3C
getNamedItem() Returns the specified node (by name)
通过本地名称返回指定的节点
5 1 9 Yes
getNamedItemNS() Returns the specified node (by name and namespace)
通过本地名和命名空间的URI得到指定的节点
    9 Yes
item() Returns the node at the specified index
返回指定索引的节点
5 1 9 Yes
removeNamedItem() Removes the specified node (by name)
通过本地名称删除指定的节点
6 1 9 Yes
removeNamedItemNS() Removes the specified node (by name and namespace)
通过本地名和命名空间的URI删除指定的节点
    9 Yes
setNamedItem() Sets the specified node (by name)
通过本地名称设置指定的节点
    9 Yes
setNamedItemNS() Sets the specified node (by name and namespace)
通过本地名和命名空间的URI设置指定的节点
    9 Yes

评论 (0) All

登陆 | 还没注册?