admin.databasePhraseAround( namespace as String?, localname as String ) as element(db.phraseAround)
This function constructs a phrase through specification.
Parameters | |
---|---|
namespace | The namespace URI. |
localname | The local name for the node. |
const admin = require('/MarkLogic/admin.xqy'); admin.databasePhraseAround("my/namepsace", "elementname" ) //returns the phrase around specification