In the Marklogic XML DB that I am working on, there are two different documents that have the same URI. Is legal to have the same URI for different XML docs in Marklogic DB ??
MarkLogic documents are identified by their URI. You should not have different documents with same URI but it can happen. Take a look at this link https://help.marklogic.com/knowledgebase/article/View/22/0/handling-xdmp-dbdupuri-errors . It has suggestions on how to resolve the issue