We a storage service used by other applications. Currently we're using an XML database for the storage service, storing XML and letting the other applications query it using XQuery. I'm prototyping using MongoDB instead. The storage is fairly straightforward if we convert XML to JSON. However, the querying is not as straightforward because we don't have control over the queries. Is there a way to dynamically transform XQuery queries into Mongo-compatible queries? The folks here (http://www.28msec.com/html/entry/2011/10/06/Sausalito_14) seem to do something along those lines, though it's not exactly what we're looking for.