Loading TOC...


   $entity-document as document-node()
) as element()*


This function is deprecated and will not be supported in MarkLogic 11.
Extract a canonical entity instance from its envelope document, as XML.

entity-document An envelope document that contains canonical entity instance(s).

Usage Notes

Use this function to extract the canonical XML instance data from an envelope document. This function returns a sequence of XML elements, one per instance in the envelope document. If no instances are found, an empty sequence is returned.

See Also


(: Assume /es-gs/env/1234.xml is an envelope document with
 : the following contents:
  <es:envelope xmlns:es="http://marklogic.com/entity-services">
        <fullName>George Washington</fullName>

xquery version "1.0-ml";
import module namespace es = "http://marklogic.com/entity-services"
    at "/MarkLogic/entity-services/entity-services.xqy";


(: Returns a json:object (map:map) equivalent to the following JSON:

  <Person xmlns:es="http://marklogic.com/entity-services">
    <fullName>George Washington</fullName>

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