Test for xml format prior to fixing xml