Loading TOC...

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.

Comments

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