Name

NamedNodeMap.getNamedItemNS( ) — look up a node by name and namespace

Availability

DOM Level 2 Core

Synopsis

Node getNamedItemNS(String namespaceURI,
                    String localName);

Arguments

namespaceURI

The namespaceURI property of the desired node, or null for no namespace.

localName

The localName property of the local node.

Returns

The element of the NamedNodeMap that has the specified namespaceURI and localName properties, or null if there is no such node.

Description

getNamedItemNS( ) looks up an element of a NamedNodeMap by namespace and local name. It is useful only with XML documents that use namespaces.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.