You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var xsd2json = require('xsd2json');
var filename = '../examples/release-notification.xsd';
// use as function
xsd2json(filename, {'debug-info':true},function(err, schemaObject) {
if(err) throw err;
console.log(JSON.stringify(schemaObject, null, 2));
});
Thank you for reporting this. First of all, it is a good idea to try the native Prolog interface as described here. It gives the following:
> swipl -g main cli.pl -- /home/fnogatz/tmp/release-notification.xsd
ERROR: -g main: open/4: source_sink `'/home/fnogatz/tmp/http://ddex.net/xml/avs/avs_20161006.xsd'' does not exist (No such file or directory)
As of now, xsd2json does not support remote locations as it can be found in the schema here:
I try to convert with this code:
the xml schema from here http://service.ddex.net/xml/ern/37/release-notification.xsd
but in the console just have this error
ERROR: -g user:main: false
what it means?
if I remove this
, {'debug-info':true}
from the function, the execution hangsThe text was updated successfully, but these errors were encountered: