Is there a way to go directly from XML to Avro in Python?
From the documentation, it seems that there isn't a direct path... so far the workflow looks like this to me:
- Create schema in json
- Read in each line of XML
- Parse XML and assign to corresponding json binding
- Read in the json formatted XML document using the Python avro reader & JSON formatted schema
- Close avro file
Is there a better (more direct) way?