
admin:database-field( $field-name as xs:string, $include-root as xs:boolean ) as element(db:field)
This function constructs a field specification.
| Parameters | |
|---|---|
| field-name | The name of the field. |
| include-root | A boolean value, true to start including at the root, false to not include until an included element is reached. |
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
admin:database-field("myField", fn:true() )
(: the constructed element :)