Use Jackson’s XML mapper to deserialize xml with several root elements I used Jackson’s xml mapper to reserialize below xml and convert it into csv.