xsd-gen

Generate XSD from XML.

License

License

GroupId

GroupId

org.wiztools
ArtifactId

ArtifactId

xsd-gen
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

xsd-gen
Generate XSD from XML.
Project URL

Project URL

https://github.com/wiztools/xsd-gen
Source Code Management

Source Code Management

https://github.com/wiztools/xsd-gen

Download xsd-gen

How to add to project

<!-- https://jarcasting.com/artifacts/org.wiztools/xsd-gen/ -->
<dependency>
    <groupId>org.wiztools</groupId>
    <artifactId>xsd-gen</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.wiztools/xsd-gen/
implementation 'org.wiztools:xsd-gen:0.2.1'
// https://jarcasting.com/artifacts/org.wiztools/xsd-gen/
implementation ("org.wiztools:xsd-gen:0.2.1")
'org.wiztools:xsd-gen:jar:0.2.1'
<dependency org="org.wiztools" name="xsd-gen" rev="0.2.1">
  <artifact name="xsd-gen" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.wiztools', module='xsd-gen', version='0.2.1')
)
libraryDependencies += "org.wiztools" % "xsd-gen" % "0.2.1"
[org.wiztools/xsd-gen "0.2.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.wiztools.commons : wiztools-commons-lib jar 0.4.1
xom : xom jar 1.2.5
com.google.code.cli-parser : cli jar 7

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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));
org.wiztools

WizTools.org

Passion meets programming.

Versions

Version
0.2.1