I believe this is caused by node-expat not supporting the Unknown Encoding parser.
Reencoding the file in UTF-8 or hard setting the parser encoding on the Parser initialization (on my fork, here) allows the parser to properly complete.
Recording this issue as a helper for others suffering the same issue.
When running cxsd against a XSD file using a non-supported encoding in libexpat (example here), csxd will fail with the following error:
Supported encodings in libexpat are (from here):
I believe this is caused by node-expat not supporting the Unknown Encoding parser.
Reencoding the file in UTF-8 or hard setting the parser encoding on the Parser initialization (on my fork, here) allows the parser to properly complete.
Recording this issue as a helper for others suffering the same issue.