Added XMLSyntaxError and print statement