print the xml in case of error