cubicweb #342773 malformed XML view [rejected]

Displaying the XML view for a person on CRM generates invalid XML with the XML declaration at the end of the document:

<?xml version="1.0" encoding="UTF-8"?>
<rset size="1">
 <Person>
  <creation_date>2008-01-11 10:56:10.73</creation_date>
  <modification_date>2009-04-14 14:08:57.18</modification_date>
  <surname>XXX</surname><firstname>XXX</firstname><civility>Mr</civility>
  <address>None</address><birthday>None</birthday>
  <description_format>text/rest</description_format>
  <description>bla bla</description>
  <web>None</web><eid>nnnnnn</eid>
  <Company>DDDDD</Company>
  <?xml version="1.0" encoding="UTF-8"?>
  <rset size="1">
   <Address><street>bla bla bla</street><street2>None</street2><postalcode>XXXXX</postalcode>
   <city>NNNN</city><country>None</country><state>None</state> <eid>yyyyyy</eid><creation_date>2008-08-08 10:08:20.91</creation_date>
   <modification_date>2008-08-08 10:08:20.91</modification_date></Address>
  </rset>
 </Person>
</rset>
prioritynormal
typebug
done in<not specified>
load left0.000
closed by<not specified>