Loading TOC...

NamedNodeMap.getNamedItemNS

NamedNodeMap.getNamedItemNS(
   uri as String?,
   localname as String
) as XMLNode

Summary

Return the node with the given localname and namespace URI, if it exists in the map.

Parameters
uri Namespace URI of the node to return.
localname Local name of the node to return.

Usage Notes

If the first argument is null, it will match a node with no namespace.

Example

cts.doc("example.xml").root.
   attributes.getNamedItemNS("http://www.w3.org/XML/1998/namespace","lang");

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.