Node Object
The lookupNamespaceURI() method returns the namespace URI matching the specified prefix on a node.
| Parameter | Description |
|---|---|
| prefix | Required. The prefix |
The following code fragment loads "books_ns.xml" into xmlDoc using loadXMLDoc() and finds the namespace URI for the "c" prefix in the first <book> element:
Output:
Node Object
Your message has been sent to W3Schools.