The namespaceURI property returns the namespace URI of a node.
The namespaceURI property is supported in all major browsers, except Internet Explorer.
Return Value: | A String representing the namespace URI of a node |
---|---|
DOM Version | Core Level 2 Node Object |
The following code fragment loads "books_ns.xml" into xmlDoc using loadXMLDoc() and returns the namespace URI of the <title> elements:
The output of the code above will be: