I am trying to send a XML data to Kafka topic using Kafka 0.9.0 version Java API, because from 0.9.0 version they are suggesting to use Java API instead Scala API to get better performance.
http://kafka.apache.org/090/documentation.html#producerapi
My XML File has around 5 MB data, what is the XML API i can use to read XML file and convert as String and then send that String to Kafka Topic.
Or can i convert that XML as JSON data and send it to Kafka? also should i consider splitting my XML data to multiple small amount of data and send to Kafka Topic?