Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when attempting to use xsd2json #83

Open
robgwheeler opened this issue Mar 18, 2018 · 3 comments
Open

Error when attempting to use xsd2json #83

robgwheeler opened this issue Mar 18, 2018 · 3 comments

Comments

@robgwheeler
Copy link

Attempting to convert 5 XSDs linked by import using this tool and unfortunately it gets so far then stops with the following error: (I have installed swipl)

debug: Spawn prolog xsd2json program
events.js:182
throw er; // Unhandled 'error' event
^

Error: spawn swipl ENOENT
at _errnoException (util.js:1019:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
at onErrorNT (internal/child_process.js:374:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

unfortunately, i'm unable to provide the XSDs. Is there any other information I can provide to assist?

@fnogatz
Copy link
Owner

fnogatz commented Mar 20, 2018

I have just uploaded version 1.11.6 of xsd2json which provides a --debug-info flag. Could you please reinstall this new version, run xsd2json --debug-info and copy its output here?

Do you install xsd2json globally or locally?

@fnogatz
Copy link
Owner

fnogatz commented Apr 28, 2018

ping Any new on this, @robgwheeler? :)

@maliozer
Copy link

when I tried to use xsd2json the error is like that: ERROR: SGML2PL(xmlns):
C:\Users\Mehmet Ali\AppData\Roaming\npm\node_modules\xsd2json\lib-pl\cli.exe:7: Bad UTF-8 sequence

why 2 slashes between npm and node_modules ? 🤙
how to fix utf-8 sequence ❓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants