title: XML XSD to AVRO avsc mapping in Java
body: <p>I am having an XML file and XSD file as input. The ideal goal is to serialize the XML data into AVRO based on avro schema (avsc) and deserialize back the same. </p>
  
  <p>The XSD file is converted into POJO with xjc tool in java
  The AVSC file is also converted into POJO with avro-tools.jar</p>
  
  <p>The XML data is mapped to XSD POJO. </p>
  
  <p>Can anyone suggest how this XSD POJO can be mapped into the AVSC POJO for avro serialization?</p>
  
  <p>The XML data is very large and contains many nested element. Both the XSD and AVSC mapping is okay.</p>