/xml-avro

Generate Avro schema and Avro binary from XSD schema and XML

Primary LanguageJavaApache License 2.0Apache-2.0

xml-avro

This project provides Converter to convert generic xsd/xml to asvc/avro files. Avro schema and avro file are generated from xsd schema and xsd file.

Running Project

  1. git clone;
  2. mvn package;
  3. java -jar target/xml-avro*.jar avro <xmlFile> <avroFile>; // converts specified xml to avro file
  4. java -jar target/xml-avro*.jar xml <avroFile> <xmlFile>; // converts specified avro to xml file

Usage

XML Avro converter.
Usage: "{-d|--debug} {-b|--baseDir <baseDir>} <xsdFile> <xmlFile> {<avscFile>} {<avroFile>}"

Restrictions

Converter has following restriction:

  • xml docs with multiple namespaces are not supported;
  • complex type extension is not supported;