Loading TOC...

MarkLogic 10 Product Documentation
XMLNode.namespaceURI

XMLNode.namespaceURI as String

Summary

Return the namespace URI of this node.

Usage Notes

This property is defined for element and attribute nodes.

Example

const node = fn.head(xdmp.unquote(
  '<ns:parent xmlns:ns="/my/ns"><ns:child>content</ns:child></ns:parent>')).root;
node.firstChild.namespaceURI;

// Returns: '/my/ns'

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