fnogatz / xsd2json

Translate XML Schema into equivalent JSON Schema
MIT License
149 stars 28 forks source link

Fix for SWI 6: read_string/3 undefined #45

Closed fnogatz closed 7 years ago

fnogatz commented 7 years ago

The read_string/3 predicate used in markup_to_string/4 of helpers.pl is defined only since SWI-Prolog of version 6 (corresponding commit). That's why xsd2json fails for XSDs which include xs:documentation tags:

> ./lib-pl/cli test/xsd/annotation.xsd 
ERROR: Prolog initialisation failed:
ERROR: helpers:markup_to_string/4: Undefined procedure: helpers:read_string/3