XML DOM - Die NamedNodeMap- objek
Die NamedNodeMap-objek verteenwoordig 'n ongeordende lys nodusse.
Die NamedNodeMap-objek
Die nodusse in die NamedNodeMap kan deur hul naam verkry word.
Die NamedNodeMap hou homself op datum. As 'n element uitgevee of bygevoeg word, in die noduslys of die XML-dokument, word die lys outomaties opgedateer.
Let wel: In 'n benoemde noduskaart word die nodusse nie in enige spesifieke volgorde teruggestuur nie.
NamedNodeMap Object Properties
Property | Description |
---|---|
length | Returns the number of nodes in the list |
NamedNodeMap-objekmetodes
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) |