An open API service indexing awesome lists of open source software.

https://github.com/typeable/xsd-isogen

Tool to generate xml-isogen descriptions from xsd files
https://github.com/typeable/xsd-isogen

Last synced: 6 months ago
JSON representation

Tool to generate xml-isogen descriptions from xsd files

Awesome Lists containing this project

README

          

# xsd-isogen

Tool to generate xml-isogen descriptions from xsd files

Usage
=====

Use `xsd-isogen -i in.xsd -m Generator > out.hs` for queries.

Use `xsd-isogen -i in.xsd -m Parser > out.hs` for responses.

Use `xsd-isogen -i in.xsd -m Both > out.hs` for common definitions.

If there are conflicting field names in some datatypes, one of the the datatype names gets consecutive numbers starting from 2 appended to it (so that the field name prefix changes) until there are no more conflicts.

## Available options:
- `--no-header`:
Do not place a header at the top of the file.
- `--header ARG`:
A custom header to be placed at the top of the file.
- `-m,--mode ARG`:
Whether to generate both parsers and generators. One of: Parser, Generator, Both.
- `-i,--input ARG`:
Path to the input .xsd file.
- `-n,--name ARG`:
Specify the name of the generated module.
- `-h,--help`:
Show this help text