Pojo to xml writing functionality implemented