<?xml version="1.0" encoding="UTF-8"?> <serializer> <class name="JMS\Serializer\Tests\Fixtures\BlogPost" xml-root-name="blog-post"> <xml-namespace uri="http://example.com/namespace"/> <xml-namespace prefix="gd" uri="http://schemas.google.com/g/2005"/> <xml-namespace prefix="atom" uri="http://www.w3.org/2005/Atom"/> <xml-namespace prefix="dc" uri="http://purl.org/dc/elements/1.1/"/> <property name="id" type="string" groups="comments,post"> <xml-element cdata="false"/> </property> <property name="title" type="string" groups="comments,post"> <xml-element namespace="http://purl.org/dc/elements/1.1/"/> </property> <property name="createdAt" xml-attribute="true" type="DateTime"/> <property name="published" type="boolean" serialized-name="is_published" xml-attribute="true" groups="post" /> <property name="etag" type="string" xml-attribute="true" groups="post"> <xml-element namespace="http://schemas.google.com/g/2005"/> </property> <property name="comments" groups="comments"> <type><![CDATA[ArrayCollection<JMS\Serializer\Tests\Fixtures\Comment>]]></type> <xml-list inline="true" entry-name="comment" /> </property> <property name="author" groups="post" type="JMS\Serializer\Tests\Fixtures\Author"> <xml-element namespace="http://www.w3.org/2005/Atom"/> </property> </class> </serializer>