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 just asking because there are so many different approaches out there, and none of them is really satisfying (the last request on our list from Florent Gallaire was just a few weeks ago). It will be impossible to cover all of them in a single implementation, but we could at least try to find a common solution for BaseX and eXist.
[1] http://exist-db.org/exist/apps/wiki/blogs/eXist/JSONSerializer [2] https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg05390.htm...
Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJU5K3aAAoJEADcfz7u4AZjnA0LwIZMAohm1Q4A2HLIqvr6Ikis Mvlz03RGIoNpfmUqruXgTK+MDK7nVR6S15GZ0WkUBAh8gT40PxUBjX861N9oHUs+ 7UN79Rcmhw4uT9jPv47vT2Of6vx/WgE4KVpxMCevVICDuONsqQoM73CwZBmu9LqL sbsNpx3vf1sG/QOvi1c6C28fJwKNIyvyQnj3Rc3TUUnQ4ZrstFXXVbTrWvO31Cvm ND+0PjXg49u+63K5JkHtLyOM2kZQ4yDIGYuOAlhtxfTMaappILcuc/pN1UxjmRjj 7hMPTXC2EK/vEEvcYcCQiL3mZEAOpoGWibiElWfpQHHUsLPfxjQ7U0cqa5au+rT/ 74Op+rrYPkKoAXtgPZeCdlyUjTr6qpZBGzyDyPww1xELb5tz74tMbm1uZdtJD3HZ qZH7L72ZDJF10XOtXMgSv+BUwqjSdqG5tyYGzAXRqTSw6t3n2wus4MciKQonBU1S R9s279cgXjAuS08Re5CuIXdKIIvFDYc= =o8Ff -----END PGP SIGNATURE-----