Added a function to check if there is bad stuff in XML.