|
|
@@ -138,47 +138,47 @@ $out = $feed->export('atom');
|
|
|
The output rendered should be as follows:
|
|
|
</para>
|
|
|
|
|
|
- <programlisting language="xml">
|
|
|
-<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
- <title type="text">Paddy's Blog</title>
|
|
|
- <subtitle type="text">Writing about PC Games since 176 BC.</subtitle>
|
|
|
- <updated>2009-12-14T20:28:18+00:00</updated>
|
|
|
- <generator uri="http://framework.zend.com" version="1.10.0alpha">
|
|
|
+ <programlisting language="xml"><![CDATA[
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
+ <title type="text">Paddy's Blog</title>
|
|
|
+ <subtitle type="text">Writing about PC Games since 176 BC.</subtitle>
|
|
|
+ <updated>2009-12-14T20:28:18+00:00</updated>
|
|
|
+ <generator uri="http://framework.zend.com" version="1.10.0alpha">
|
|
|
Zend_Feed_Writer
|
|
|
- </generator>
|
|
|
- <link rel="alternate" type="text/html" href="http://www.example.com"/>
|
|
|
- <link rel="self" type="application/atom+xml"
|
|
|
+ </generator>
|
|
|
+ <link rel="alternate" type="text/html" href="http://www.example.com"/>
|
|
|
+ <link rel="self" type="application/atom+xml"
|
|
|
href="http://www.example.com/atom"/>
|
|
|
- <id>http://www.example.com</id>
|
|
|
- <author>
|
|
|
- <name>Paddy</name>
|
|
|
- <email>paddy@example.com</email>
|
|
|
- <uri>http://www.example.com</uri>
|
|
|
- </author>
|
|
|
- <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
|
|
|
- <entry>
|
|
|
- <title type="html"><![CDATA[All Your Base Are Belong To Us]]></title>
|
|
|
- <summary type="html">
|
|
|
- <![CDATA[Exposing the difficultly of porting games to English.]]>
|
|
|
- </summary>
|
|
|
- <published>2009-12-14T20:28:18+00:00</published>
|
|
|
- <updated>2009-12-14T20:28:18+00:00</updated>
|
|
|
- <link rel="alternate" type="text/html"
|
|
|
+ <id>http://www.example.com</id>
|
|
|
+ <author>
|
|
|
+ <name>Paddy</name>
|
|
|
+ <email>paddy@example.com</email>
|
|
|
+ <uri>http://www.example.com</uri>
|
|
|
+ </author>
|
|
|
+ <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
|
|
|
+ <entry>
|
|
|
+ <title type="html"><![CDATA[All Your Base Are Belong To Us]]]]><![CDATA[></title>
|
|
|
+ <summary type="html">
|
|
|
+ <![CDATA[Exposing the difficultly of porting games to English.]]]]><![CDATA[>
|
|
|
+ </summary>
|
|
|
+ <published>2009-12-14T20:28:18+00:00</published>
|
|
|
+ <updated>2009-12-14T20:28:18+00:00</updated>
|
|
|
+ <link rel="alternate" type="text/html"
|
|
|
href="http://www.example.com/all-your-base-are-belong-to-us"/>
|
|
|
- <id>http://www.example.com/all-your-base-are-belong-to-us</id>
|
|
|
- <author>
|
|
|
- <name>Paddy</name>
|
|
|
- <email>paddy@example.com</email>
|
|
|
- <uri>http://www.example.com</uri>
|
|
|
- </author>
|
|
|
- <content type="html">
|
|
|
- <![CDATA[I am not writing the article.
|
|
|
- The example is long enough as is ;).]]>
|
|
|
- </content>
|
|
|
- </entry>
|
|
|
-</feed>
|
|
|
-</programlisting>
|
|
|
+ <id>http://www.example.com/all-your-base-are-belong-to-us</id>
|
|
|
+ <author>
|
|
|
+ <name>Paddy</name>
|
|
|
+ <email>paddy@example.com</email>
|
|
|
+ <uri>http://www.example.com</uri>
|
|
|
+ </author>
|
|
|
+ <content type="html">
|
|
|
+ <![CDATA[I am not writing the article.
|
|
|
+ The example is long enough as is ;).]]]]><![CDATA[>
|
|
|
+ </content>
|
|
|
+ </entry>
|
|
|
+</feed>
|
|
|
+]]></programlisting>
|
|
|
|
|
|
<para>
|
|
|
This is a perfectly valid Atom 1.0 example. It should be noted that omitting an
|