I noticed that the xml output has changed since the code was merged (it now includes a lot of empty things like xmlns:rdf="").
Since the php code itself hasn't changed I assume it is something deeper (maybe XMLWriter?) which has changed.
As a result the xml no longer validates.