
admin:database-included-element( $namespace as xs:string?, $localname as xs:string, $weight as xs:double, $attribute-namespace as xs:string?, $attribute-localname as xs:string, $attribute-value as xs:string ) as element(db:included-element)
This function constructs an included element specification.
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
admin:database-included-element("http://myuri/namespace",
"element-name", 1.0, "", "myAttribute", "some value")
(: the constructed element :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.