Reputation: 944
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 ??
Upvotes: 1
Views: 243
Reputation: 238
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
Upvotes: 2
Reputation: 833
You can use same URI there is no violation as such. Since your requirement asks for same URI, you can give each document a different collection and hence you will be able to fetch/query your database accordingly.
Upvotes: 1