crazy-cdata.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <rss version="2.0"
  3. xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/"
  4. xmlns:content="http://purl.org/rss/1.0/modules/content/"
  5. xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  6. xmlns:dc="http://purl.org/dc/elements/1.1/"
  7. xmlns:wp="http://wordpress.org/export/1.1/"
  8. >
  9. <channel>
  10. <wp:wxr_version>1.1</wp:wxr_version>
  11. <wp:base_site_url>http://wp.dev</wp:base_site_url>
  12. <item>
  13. <title>Hello world!</title>
  14. <link>http://example.org/?p=1</link>
  15. <pubDate>Thu, 05 Jan 2012 14:30:46 +0000</pubDate>
  16. <dc:creator>admin</dc:creator>
  17. <guid isPermaLink="false">http://example.org/?p=1</guid>
  18. <content:encoded><![CDATA[Content with nested <![CDATA[ tags ]]> :)]]></content:encoded>
  19. <excerpt:encoded><![CDATA[]]></excerpt:encoded>
  20. <wp:post_id>1</wp:post_id>
  21. <wp:post_date>2012-01-05 14:30:46</wp:post_date>
  22. <wp:post_date_gmt>2012-01-05 14:30:46</wp:post_date_gmt>
  23. <wp:comment_status>open</wp:comment_status>
  24. <wp:ping_status>open</wp:ping_status>
  25. <wp:post_name>hello-world</wp:post_name>
  26. <wp:status>publish</wp:status>
  27. <wp:post_parent>0</wp:post_parent>
  28. <wp:menu_order>0</wp:menu_order>
  29. <wp:post_type>post</wp:post_type>
  30. <wp:post_password></wp:post_password>
  31. <wp:is_sticky>0</wp:is_sticky>
  32. <wp:postmeta>
  33. <wp:meta_key>Plain string</wp:meta_key>
  34. <wp:meta_value><![CDATA[Foo]]></wp:meta_value>
  35. </wp:postmeta>
  36. <wp:postmeta>
  37. <wp:meta_key>Closing CDATA</wp:meta_key>
  38. <wp:meta_value><![CDATA[]]>]]></wp:meta_value>
  39. </wp:postmeta>
  40. <wp:postmeta>
  41. <wp:meta_key>Alot of CDATA</wp:meta_key>
  42. <wp:meta_value><![CDATA[This has <![CDATA[ opening and ]]> closing <![CDATA[ tags like this: ]]>]]></wp:meta_value>
  43. </wp:postmeta>
  44. </item>
  45. </channel>
  46. </rss>