update xml and java