GithubHelp home page GithubHelp logo

gholdzhang / xsd-gen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wiztools/xsd-gen

0.0 0.0 0.0 109 KB

Java cli tool for generating XSD from an XML

License: MIT License

Shell 0.83% Java 99.17%

xsd-gen's Introduction

WizTools.org XSD Gen

Command-line tool written in Java for generating XSD from an XML. Can also be used as a library within your application.

Install

Builds are available as uber jar.

Mac users can install via homebrew:

brew tap wiztools/repo
brew install xsd-gen

Once installed, xsd-gen is available in PATH.

Running

To generate schema:

$ java -jar xsd-gen-fat-VERSION.jar /path/to/xml.xml > /path/to/my.xsd

To view additional command-line options:

$ java -jar xsd-gen-fat-VERSION.jar -h

As Library

Latest versions of the library are available in the jitpack repository.

Usage:

import org.wiztools.xsdgen.XsdGen;
import java.io.File;
import java.io.FileOutputStream;

...

XsdGen gen = new XsdGen();
gen.parse(new File("in.xml"));
File out = new File("out.xsd");
gen.write(new FileOutputStream(out));

xsd-gen's People

Contributors

fjardlabs avatar froderanders avatar montoyaedu avatar subwiz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.