refactor xmlparser because of conflicts