admin.databaseExcludedElement( namespace as String?, localname as String, [attribute-namespace as String?], [attribute-localname as String], [attribute-value as String] ) as element(db.excludedElement)
This function constructs an excluded element specification.
const admin = require('/MarkLogic/admin.xqy'); admin.databaseExcludedElement("http://myuri/namespace", "elementName") //the constructed element
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.