Loading TOC...

xdmp.elementContentType

xdmp.elementContentType(
   $element as Node
) as String

Summary

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

Parameters
$element An element node.

Example

xdmp.elementContentType(
  fn.head(xdmp.unquote('<html xmlns="http://www.w3.org/1999/xhtml"/>')).root);
=> "element-only"

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy