Skip to content

Instantly share code, notes, and snippets.

View rwalkerands's full-sized avatar

Richard Walker rwalkerands

View GitHub Profile
@lcahlander
lcahlander / xsd2json.xqy
Last active April 9, 2019 14:13
Translate an XML Schema into equivalent JSON Schema
xquery version "3.1";
(:~
This XQuery library module transforms an XML Schema to a JSON Schema equivalent.
NOTE: This is a work in progress. I would appreciate any comments to make it more robust.
To execute the transformation, place the followin in another XQuery module.
xquery version "3.1";
import module namespace xsd2json="http://easymetahub.com/ns/xsd2json" at "xsd2json.xqy";