Added java code to parse XML