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
- Host: GitHub
- URL: https://github.com/typeable/xsd-isogen
- Owner: typeable
- License: bsd-3-clause
- Created: 2019-10-23T10:20:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T13:23:47.000Z (almost 4 years ago)
- Last Synced: 2025-06-20T03:03:55.841Z (7 months ago)
- Language: Haskell
- Size: 75.2 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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