On Wed, 2013-01-30 at 17:40 +0000, Zachary Pride wrote:
I've been able to get JSONML to output but the JSON is this morass of nested Arrays... Attributes seem to get transformed into Objects but elements/tags and their values are pushed into Arrays for some rationale - which I suppose is on purpose.
In XML, the order of elements is significant. Consider the paragraphs in a chapter of a book, for example :-) I'll have to let others answer about generating JSON with BaseX, although another option is to write a function yourself to do it, and generate text that happens to be JSON. Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml