Loading TOC...

XMLNode.prefix

XMLNode.prefix as String

Summary

Return the namespace prefix 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>some content</ns:child></ns:parent>'))
  .root;
node.firstChild.prefix

// returns 'ns'

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy