Update XMLParser.java

changed function name and return value