Hey there,
I'm probably missing something but please bear with my as I'm new to XML databases and XQuery.
So what I've done is put JSON documents into BaseX using the REST interface and PUT requests.
Now I want to use them in a RESTXQ handler. Loading the document using "db:open" will return me a document-node() but I'd like a map instead for simpler use and automatic types (I'll be outputing JSON again).
The only thing I could come up with and that works is using "Content-Type: application/json;format=basic" when uploading and then:
parse-json(xml-to-json(db:open(...)))
But that seems very complicated and wasteful. Is there no other way?
Regards Florian Wagner --- Universitaetsbibliothek Tuebingen Wilhelmstr. 32, 72074 Tuebingen IT-Abteilung, Raum B109 +49(0)7071/29-77860 http://www.ub.uni-tuebingen.de