How to fire query for loaded documents in marklogic server? -
i loaded xml documents marklogic server through load content, xquery
, through admin
interface. did sample example fetching document data, manipulating , through xquery
console.
but after loading document server, how put query them through xquery??
thanks in advance!!
there number of ways this, depends how stored xml files:
first, if documents in 1 dicrectory 'mydirectory', may use xdmp:directory("/mydirectory/")
return xml files content.
second, if don't know directory , root element xml files same 'root', should use /root
related xml files.
third, if know uri of xml file '/mydirectory/abc.xml' use doc("/mydirectory/abc.xml")
fourth, if want everthing db, use doc()
Comments
Post a Comment