Shouldn't we use the same option "LIBXML_NOERROR" here as in the format part of the recorder ? It seems to me that the same kind of bad formatted XML can happen here.