Skip to content

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

License

LGPL-3.0 and 2 other licenses found

Licenses found

LGPL-3.0
LICENSE
Unknown
LICENSE-xsom.1
Unknown
LICENSE-xsom.2
Notifications You must be signed in to change notification settings

energyd/xsd2thrift

 
 

Repository files navigation

XSD2THRIFT Build Status

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

Binary download

Version 1.0

Importing from Maven

<repositories>
  <repository>
    <id>xsd2thrift</id>
    <url>http://dl.bintray.com/content/tranchis/xsd2thrift</url>
  </repository>
</repositories>

<dependency>
  <groupid>com.github.tranchis</groupid>
  <artifactid>xsd2thrift</artifactid>
  <version>1.0</version>
  <type>jar</type>
</dependency>

Building

To build xsd2thrift, you need Maven (http://maven.apache.org/) installed. To build xsd2thrift, run mvn install.

xsd2thrift has been tested on Java SE 6.

Usage

Usage: java xsd2thrift.jar [--thrift] [--protobuf] [--output=FILENAME] [--package=NAME] filename.xsd

--thrift               : convert to Thrift
--protobuf             : convertingonvert to Protocol Buffers
--output=FILENAME      : store the result in FILENAME instead of standard output
--package=NAME         : set namespace/package of the output file
--nestEnums=true|false : nest enum declaration within messages that reference them, only supported by protobuf,
                         defaults to true

License

The code contributed for this package is licensed under LGPL v3 (see LICENSE).

XSOM is covered by GPL v2 with classpath exception (see LICENSE-xsom.1).

XSOM internally uses an URI class, which is copyrighted by Thai Open Source Center (see LICENSE-xsom.2).

Contact

Any feedback will be greatly appreciated, at the GitHub project page (http://github.com/tranchis/xsd2thrift) or at tranchis_-AT-_gmail.com.

Contributors (@github.com)

  • tranchis
  • Fred-dy-
  • pfisterer
  • wesyoung
  • dabble
  • ae589

About

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

Resources

License

LGPL-3.0 and 2 other licenses found

Licenses found

LGPL-3.0
LICENSE
Unknown
LICENSE-xsom.1
Unknown
LICENSE-xsom.2

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published