I guess, your best bet would be filling in the config file appropriately and calling this tool: https://github.com/GeethanadhP/xml-avro with needed arguments.