BlogPost.xml 1.3 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <serializer>
  3. <class name="JMS\Serializer\Tests\Fixtures\BlogPost" xml-root-name="blog-post">
  4. <xml-namespace uri="http://example.com/namespace"/>
  5. <xml-namespace prefix="gd" uri="http://schemas.google.com/g/2005"/>
  6. <xml-namespace prefix="atom" uri="http://www.w3.org/2005/Atom"/>
  7. <xml-namespace prefix="dc" uri="http://purl.org/dc/elements/1.1/"/>
  8. <property name="id" type="string" groups="comments,post">
  9. <xml-element cdata="false"/>
  10. </property>
  11. <property name="title" type="string" groups="comments,post" xml-namespace="http://purl.org/dc/elements/1.1/"/>
  12. <property name="createdAt" xml-attribute="true" type="DateTime"/>
  13. <property name="published" type="boolean" serialized-name="is_published" xml-attribute="true" groups="post" />
  14. <property name="etag" type="string" xml-attribute="true" xml-namespace="http://schemas.google.com/g/2005" groups="post" />
  15. <property name="comments" groups="comments">
  16. <type><![CDATA[ArrayCollection<JMS\Serializer\Tests\Fixtures\Comment>]]></type>
  17. <xml-list inline="true" entry-name="comment" />
  18. </property>
  19. <property name="author" groups="post" type="JMS\Serializer\Tests\Fixtures\Author" xml-namespace="http://www.w3.org/2005/Atom"/>
  20. </class>
  21. </serializer>