artefactual/archivematica — pull request #127 by mistydemeo (2014-10-21 17:51:36+00:00)
Title: characterizeFile: validate XML before inserting to DB

This ensures that if the characterization tool returns invalid XML, it will not be saved to the database in order to avoid later issues with createMETS2.

For instance, in some circumstances FITS may print error output to the stdout stream alongside actual XML content, resulting in a document that will not parse.

Fixes #7422.