Example to read and write XML files using JAXB