convert xml to java object; convert java object to xml.