Loading TOC...

MarkLogic 10 Product Documentation
XMLDocument.getElementById

XMLDocument.getElementById(
   id as String
) as Element

Summary

Get the element in this document with the given id, if any.

Parameters
id The id of the element to return.

Example

cts.doc("example.xml").getElementById("ex1")

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