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.
- git clone;
- mvn package;
- java -jar target/xml-avro*.jar avro <xmlFile> <avroFile>; // converts specified xml to avro file
- java -jar target/xml-avro*.jar xml <avroFile> <xmlFile>; // converts specified avro to xml file
XML Avro converter.
Usage: "{-d|--debug} {-b|--baseDir <baseDir>} <xsdFile> <xmlFile> {<avscFile>} {<avroFile>}"
Converter has following restriction:
- xml docs with multiple namespaces are not supported;
- complex type extension is not supported;