Improve XML parsing in http-push