MarkLogic 9 Product Documentation
view:schema-get

view:schema-get(
   $schema-name as xs:string
) as element(view:schema)

Summary

This function returns the named schema specification document.

Parameters
schema-name The name of the schema specification to return.

Example

  xquery version "1.0-ml"; 
 
  import module namespace view = "http://marklogic.com/xdmp/view" 
      at "/MarkLogic/views.xqy";

  view:schema-get("main")

  (: Return the schema, named 'main'. :)  
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy