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")
Powered by MarkLogic Server | Terms of Use | Privacy Policy