Strictly speaking, documents don't have namespaces, but all the elements in 
them do. If you want all documents with root elements in a particular 
namespace, you can query for /ns:*, but that won't resolve out of the indexes, 
since the element's "qualified names" (QName) is indexed, but the namespace 
alone is not.

It is better to know all the element names and query for exactly what you want: 
/(ns:elem1 | ns:elem2 | ns:elem3).

Damon

From: [email protected] 
[mailto:[email protected]] On Behalf Of mano m
Sent: Thursday, March 03, 2011 6:44 AM
To: [email protected]
Subject: [MarkLogic Dev General] namespace

Hi,

 Is it possible to get the list of documents stored on ML sharing the same 
namespace.

regards,
Mano


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to