Added an additional XML syntax check