I have multiple XML documents stored in MarkLogic, my requirement is to get the URIs of the document when there is a specific element in it, all XMLs are stored with namespace in it.
sample XML from MarkLogic
<item xmlns="http://namespaces.test.org/namespaces/ab">
<itemId>TestItem</itemId>
<languageCode>EN</languageCode>
</item>
following query was executed with no result,
cts:uris((), (), cts:and-query(
cts:element-query(xs:QName("itemId"), cts:true-query()))
)
looks like namespace is causing issue here, I am not sure how to specify the namespace in cts:uris()
Any help is appreciated.