Met Element Lookupnamespaceuri
# XML DOM lookupNamespaceURI() Method
* * Element Object](#)
* * *
## Definition and Usage
The lookupNamespaceURI() method returns the namespace URI matching a specified prefix on the current node.
## Syntax
elementNode.lookupNamespaceURI(prefix)
| Parameter | Description |
| :--- | :--- |
| prefix | Required. A string specifying the prefix to look up. |
* * *
## Example
The following code snippet uses [loadXMLDoc()](#) to load "[books_ns.xml](#)" into xmlDoc, and looks up the namespace URI for the prefix "c" in the first element:
## Example
xmlDoc=loadXMLDoc("books_ns.xml");
x=xmlDoc.getElementsByTagName("book");
document.write(x.lookupNamespaceURI("c"));
Output:
[Try it Β»](#)
* * Element Object](#)
YouTip