Streaming XSD parser and XML parser generator with TypeScript output
npm install @loanlink-nl/cxsdcxsd is a streaming XSD parser and XML parser generator for Node.js and TypeScript.
It retrieves the specified file(s) and generates a Typescript file containing the defintions and a parser based on the widely used fast-xml-parser library.
``shParsing from local filesystem
cxsd path/to/file.xsd
- Automatically download and cache to disk all imported .xsd files
- Convert XSD contents to Typescript equivalents
- Imports from remote URLs to imports from local relative paths
- Lists to arrays
- Annotations to JSDoc
- WIP: Strings, numbers and dates to matching primitive types
Copyright (c) 2025 LoanLink
based largely on work from BusFaster Ltd and WikiPathways