Easy Tutorial
❮ Met Element Lookupprefix Met Text Substringdata ❯

XML DOM lookupNamespaceURI() Method



Definition and Usage

The lookupNamespaceURI() method returns the namespace URI that matches the prefix specified on a given node.

Syntax

Parameter Description
prefix Required. The prefix.

Example

The following code snippet uses loadXMLDoc() to load "books_ns.xml" into xmlDoc and finds the namespace URI for the prefix "c" in the first <book> element:

Example

Output:


❮ Met Element Lookupprefix Met Text Substringdata ❯