Loading TOC...

xdmp:element-content-type

xdmp:element-content-type(
   $element as element()
) as xs:string

Summary

Returns the schema-defined content-type of an element ("empty", "simple", "element-only", or "mixed").

Parameters
element An element node.

Example

  xdmp:element-content-type(<html xmlns="http://www.w3.org/1999/xhtml"/>)
  => "element-only"

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