एक्सएमएल डोम - नामांकित नोडमैप ऑब्जेक्ट
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) |