• Stars
    star
    126
  • Rank 282,983 (Top 6 %)
  • Language
    Java
  • License
    BSD 2-Clause "Sim...
  • Created about 10 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Compiles XML Schemas into XML<->JSON mappings for Jsonix.

Jsonix Schema Compiler

Generates Jsonix mappings for XML Schemas.

Please refer to Wiki for documentation.

Using in command-line

Download jsonix-schema-compiler-full-<VERSION>.jar from releases and run it with java -jar from the command line:

java -jar jsonix-schema-compiler-full-<VERSION>.jar
  [-compact -logLevel TRACE]
  schema.xsd
  [-b bindings.xjb]

See Command-Line Usage.

Using with NPM

From the command line:

npm install jsonix-schema-compiler
java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar schema.xsd

Or add jsonix-schema-compiler as dependency and invoke in scripts/prepublish.

 {
    "name": "mypackage",
    ...
    "dependencies": {
        ...
        "jsonix": "<VERSION>",
        "jsonix-schema-compiler": "<VERSION>"
    },
    "scripts": {
    	...
        "prepublish" : "java -jar node_modules/jsonix/lib/jsonix-schema-compiler-full.jar schema.xsd"
    }
}

See NPM Usage.

Using with Ant

  • Include jsonix-schema-compiler-plugin-<VERSION>.jar into xjc/classpath.
  • Include -Xjsonix and further -Xjsonix-... [[command-line options|Command-Line usage]] into arg/@line.
<xjc destdir="${basedir}/target/generated-sources/xjc" extension="true">
  <arg line="-Xjsonix -Xjsonix-compact"/>
  <binding dir="${basedir}/src/main/resources">
     <include name="**/*.xjb"/>
  </binding>
  <schema dir="${basedir}/src/main/resources">
     <include name="**/*.xsd"/>
  </schema>
  <!-- Plugins -->
  <classpath>
    <fileset dir="${basedir}/lib">
      <include name="jsonix-*.jar"/>
    </fileset>
  </classpath>
</xjc>

See Ant Usage.

Using with Maven

<plugin>
	<groupId>org.jvnet.jaxb2.maven2</groupId>
	<artifactId>maven-jaxb2-plugin</artifactId>
	<configuration>
		<extension>true</extension>
		<args>
			<arg>-Xjsonix</arg>
			<arg>-Xjsonix-compact</arg>
		</args>
		<plugins>
			<plugin>
				<groupId>org.hisrc.jsonix</groupId>
				<artifactId>jsonix-schema-compiler</artifactId>
				<version>${jsonix-schema-compiler.version}</version>
			</plugin>
		</plugins>
	</configuration>
</plugin>

See Maven Usage.

More Repositories

1

jaxb-tools

The most advanced JAXB2 Maven Plugin for XML Schema compilation.
Java
413
star
2

jsonix

Powerful XML<->JSON JavaScript mapping library.
JavaScript
345
star
3

jaxb2-basics

Useful plugins and tools for JAXB2.
Java
105
star
4

ogc-schemas

XML<->Java and XML<->JS for OGC XSDs.
JavaScript
79
star
5

jaxb2-annotate-plugin

Add arbitrary annotations to JAXB classes.
Java
71
star
6

confluence-to-markdown-converter

Converts the Confluence storage format to Markdown format.
HTML
70
star
7

bahndata

Links auf die verfügbare Deutsche Bahn Daten
44
star
8

verbundkarte

Karte der Verkehrs- und Tarifverbünde in Deutschland
Batchfile
40
star
9

hyperjaxb3

Hyperjaxb3 provides relational persistence for JAXB objects
Java
34
star
10

bitcoin-a-day

Buy €X worth of Bitcoin a day using a cloud-scheduled task
Shell
27
star
11

db-fahrplan-api

Deutsche Bahn Fahrplan API
Java
14
star
12

w3c-schemas

XML<->Java (JAXB) and XML<->JS (Jsonix) bindings for W3C XML Schemas.
JavaScript
14
star
13

db-heartbeat

DB Heartbeat
JavaScript
13
star
14

raspberry-pi-adsb

Cheap and simple ADS-B base station for OpenSky Network
Shell
9
star
15

tenra

Tenra converts the railway network published by DB Netz in INSPIRE format into GeoJSON
Java
8
star
16

javascript-codemodel

Java
7
star
17

delays-api

API to find out train delays of the Deutsche Bahn.
Java
5
star
18

storyteller-maven-plugin

Java
5
star
19

camel-google-cloud-messaging

GCM Component for Apache Camel
Java
5
star
20

hvv-stops

Retrieves HVV stops as GTFS-compatible CSV
JavaScript
3
star
21

declension-dataset

Declined forms of German substantives
JavaScript
3
star
22

roads-to

Public transport "Roads to Rome"
Java
3
star
23

maven-jaxb2-plugin-support

Support project for maven-jaxb2-plugin
Java
3
star
24

postgis-verwaltungsgebiete

Scripts to setup a Postgis database with administrative areas of Germany
Batchfile
3
star
25

Germany-The-Beautiful-Travel-Country-1935-vs-1936

CSS
2
star
26

verwaltungsgebiete-bounding-boxes

Export bounding boxes of German administrative areas as CSV
Batchfile
2
star
27

aufzugswaechter

Java
2
star
28

annox

Parse Java annotations from text or XML resources.
Java
2
star
29

stop.direct

Shows departure board of the closes stop in Germany
Java
2
star
30

rail2ski

JavaScript
2
star
31

hotelroute

Find hotels with the best public transport connection to your destination
Java
2
star
32

iris-tts-rest

2
star
33

bahnhof.direct

Java
1
star
34

inspire-schemas

Batchfile
1
star
35

zugradar-scraper

Zugradar Scraper
Java
1
star
36

declension-alexa-skill-lambda

Alexa Declension Skill - Lambda
JavaScript
1
star
37

drunken-coder

What do we do with a drunken coder?
1
star
38

Mini_IndoorGMLFactory

Java
1
star
39

unece-maps

UNECE Maps
Batchfile
1
star
40

lombok-test

Trying to figure out a Lombok under Maven error
Java
1
star
41

lhapi-client

Java Client for LH API
Java
1
star
42

exjc

Extended XJC
1
star
43

aufzugswaechter-android-app

Android App for the Aufzugswaechter
Java
1
star
44

russian-railways-1867

Map of Russian Railways as of 1867
CSS
1
star
45

db-elevator-api-client

Java Client for DB S&S Elevators and Escalators API
Batchfile
1
star
46

reisezentren

1
star
47

streckenkarte

Streckenkarten des Fernverkehrs als Online-Karten
Batchfile
1
star
48

lhapi-specification

LH Public API OpenAPI Specification
1
star
49

jsonix-support

Jsonix Public Support Project
JavaScript
1
star
50

hafas-export-stops-by-coordinates

Exports stops from HAFAS by bounding box coordinates
JavaScript
1
star