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
Copy file name to clipboardExpand all lines: lib-pl/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,13 @@ All you need is [SWI-Prolog](http://www.swi-prolog.org/). See there for installa
8
8
9
9
## Usage
10
10
11
-
`xsd2json` provides a command line interface. You can use it via
11
+
`xsd2json` provides a command line interface. You can directly execute it via
12
12
13
-
swipl -q -f cli.pl -- < /path/to/your.xsd
13
+
./cli /path/to/your.xsd
14
+
15
+
or by calling swipl:
16
+
17
+
swipl -q -f cli /path/to/your.xsd
14
18
15
19
Unfortunately the command line version is way slower than using `xsd2json` programmatically. The `xsd2json.pl` module provides a predicate `xsd2json/2` which can be used to convert a given XSD file into the equivalent JSON Schema. Call it via `swipl -s xsd2json.pl` followed by
0 commit comments