XMLDOM - NamedNodeMapオブジェクト
NamedNodeMapオブジェクトは、ノードの順序付けられていないリストを表します。
NamedNodeMapオブジェクト
NamedNodeMapのノードには、その名前からアクセスできます。
NamedNodeMapは、それ自体を最新の状態に保ちます。ノードリストまたはXMLドキュメントで要素が削除または追加されると、リストは自動的に更新されます。
注:名前付きノードマップでは、ノードは特定の順序で返されません。
NamedNodeMapオブジェクトのプロパティ
Property | Description |
---|---|
length | Returns the number of nodes in the list |
NamedNodeMapオブジェクトメソッド
Method | Description |
---|---|
getNamedItem() | Returns the node with the specific name |
getNamedItemNS() | Returns the node with the specific name and namespace |
item() | Returns the node at the specified index |
removeNamedItem() | Removes the node with the specific name |
removeNamedItemNS() | Removes the node with the specific name and namespace |
setNamedItem() | Sets the specified node (by name) |
setNamedItemNS() | Sets the specified node (by name and namespace) |