mikepigott/xml-to-avro

Trying to parse the EBUCore XSD schema to Avro

Opened this issue · 2 comments

Hi Mike,

As requested, I'm posting two XSD schema files to this issue: one is the official EBUCore spec schema file (ebucore.xsd, renamed to .txt to have Github accept it) and the other is the adjusted version I created to make it work with your code (ebucore_adjusted.xsd). Take a look at both (probably best to do a diff, cause I don't really remember all the things I changed). For one, I had to explicitly add types to all elements that didn't have it explicitly coded in the schema.

As a second path, I'm also exploring a conversion method where I first try to convert the XSD to a JSON schema and then to an Avro schema using json-schema-avro. See this issue for more details.

ebucore.xsd.txt
simpledc20021212.xsd.txt
xml.xsd.txt

ebucore_adjusted.xsd.txt

Thank you!

@beligum - I'm sorry that I haven't looked at this since you posted it. Do you still need help, or were you able to find a different solution?