update the xml file format and some java code related to it