title: Whats the best way to send XML data to Kafka topic?
body: <p>I am trying to send a <code>XML data</code> to <code>Kafka topic</code> using <code>Kafka 0.9.0 version</code> Java API, because from <code>0.9.0 version</code> they are suggesting to use Java API instead Scala API to get better performance.</p>
  
  <p><a href="http://kafka.apache.org/090/documentation.html#producerapi" rel="nofollow">http://kafka.apache.org/090/documentation.html#producerapi</a></p>
  
  <p>My XML File has around <code>5 MB data</code>, what is the XML API i can use to read XML file and convert as String and then send that String to Kafka Topic.</p>
  
  <p>Or can i convert that XML as <code>JSON</code> 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?</p>