XML and DG: Better handling of boost exceptions when parsing stuff