View on GitHub

xsd2codemirror

A command line tool to convert an xsd schema to CodeMirror's schemaInfo

Download executable (.zip)

xsd2codemirror

A command line tool to convert an xsd schema to CodeMirror's schemaInfo.

See http://codemirror.net/demo/xmlcomplete.html for an example how to configure CodeMirror to use a simple schemaInfo for Ctrl-Space completion.

See xslt autocomplete demo for a real example, where the schemaInfo for CodeMirror is generated by xsd2codemirror

Usage

Usage:
xsd2codemirror.exe [-v] [-prefix prefix namespace]* path-to-xsd

ProTip™: pipe the output into a file:

xsd2codemirror C:\...\ > tags.json

Integration

You can use the SimpleSchemaParser library to integrate this into other software.

Download executable (.zip)