-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Christian GrĂ¼n wrote:
This is the script that serializes to (XML), JSON and HTML in existdb
Thanks. I guess it follows the conversion rules described in [1]?
My broader goal is to figure out how to write scripts for both databases in a compatible way in order to keep the necessary changes as minimal as possible.
Makes perfect sense. Do you have a particular opinion or preference when it comes to converting XML to JSON? What are your typical use cases?
I am the found of XML Director
and I trying to support Base-X and eXist equally. We are currently rolling out a bigger project and I am checkout how much effort it would be to moved the RESTXQ layer to BaseX. The underlaying persistence layer over WebDAV is already working on both databases.
We currently have a handful of JSON scripts doing basic aggregation for overviews or detail views from within the CMS. Sending JSON back to the CMS is more natural than having to deal with the same information as XML inside the CMS. In an upcoming phase of the project we have more specific and requirements to the XML database and so I am just playing and looking what is doable and how.
Andreas