sanity check for xml files