xdmp.elementContentType( element as Node ) as String
Returns the schema-defined content-type of an element ("empty", "simple", "element-only", or "mixed").
Parameters | |
---|---|
element | An element node. |
xdmp.elementContentType( fn.head(xdmp.unquote('<html xmlns="http://www.w3.org/1999/xhtml"/>')).root); => "element-only"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.