convert xml to json and send to ES