All files should be valid before exporting to XML.
Before saving FM binary files to XML, they must be valid. Saving an invalid file to XML may work (with errors reported), but it may also cause FrameMaker to crash. It is always best to do as much cleanup as possible in the FM binary files before saving to XML.