Loading TOC...

XMLDocument.getElementsByTagNameNS

XMLDocument.getElementsByTagNameNS(
   $uri as String?,
   $localname as String
) as NodeList

Summary

Return all the elements in the document with the given localname and namespace URI.

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

Usage Notes

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

See also the Node.xpath method.

Example

cts.doc("example.xml").
  getElementsByTagNameNS("http://example.com/ns1","item");

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.