ObjectWithXmlNamespaces.xml 1.1 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <serializer>
  3. <class name="JMS\Serializer\Tests\Fixtures\ObjectWithXmlNamespaces" xml-root-name="test-object" xml-root-namespace="http://example.com/namespace">
  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. <property name="title" type="string">
  8. <xml-element namespace="http://purl.org/dc/elements/1.1/"/>
  9. </property>
  10. <property name="createdAt" xml-attribute="true" type="DateTime"/>
  11. <property name="etag" type="string" xml-attribute="true">
  12. <xml-element namespace="http://schemas.google.com/g/2005"/>
  13. </property>
  14. <property name="author" type="string">
  15. <xml-element namespace="http://www.w3.org/2005/Atom"/>
  16. </property>
  17. <property name="language" type="string" xml-attribute="true">
  18. <xml-element namespace="http://purl.org/dc/elements/1.1/"/>
  19. </property>
  20. </class>
  21. </serializer>