Well, the good news is if you have a schema you already know the definition of the structure you need to convert. The general issue is to deal with "mixed" content and linking @ref elements to their ultimate definition and things like xs:sequence vs xs:choice. The good news is MarkLogic has a library that can execute against the schema and provide you a means to create your own custom code to convert to JSON etc. if you look at the sc:* functions you can parse to get to schema. And then using a few functions to build out the structure you need create a function that does the transformation for you. I have some various code bits I can share if you need help. If you give me some time (say tomorrow) I can probably write the code to generate the json for you. Ping me directly if you need any help.
Regards, Gary Vidal
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
