Atom 連接
Atom Syndication Format 與 Fame not Fortune 應用程序跟蹤的信息有一些相同之處:作者、發布日期等等。我可以將所有數據放進一個 feed,然後在頁面上對 XML 進行格式化,也可以用標准的聚合器跟蹤它。這可以成為我的應用程序的一大特色,幫助我超過競爭對手 —— 幫助詩人跟蹤自己的作品的所有其他工具。清單 6 給出 Atom feed 的形式(為了簡短,只給出了一個條目):
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Fame not Fortune</title>
<subtitle>Recent submissions</subtitle>
<link href="http://example.org/famenotfortune"/>
<updated>2006-12-03T20:37:16Z</updated>
<author>
<name>DanIEla Elza</name>
</author>
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
<entry>
<title>Hyacinth Blue</title>
<link href="http://example.org/famenotfortune/hyacinthblue"/>
<id>urn:uuid:68C0BAAB-C955-45F9-BDD6-21A22FC809AF</id>
<updated>2006-12-01T20:37:16Z</updated>
<published>2006-10-01T12:12:12Z</published>
<category term="Journal"/>
<content type="xhtml">
<div XMLns="http://www.w3.org/1999/xHtml">
<dl>
<dt>publisher</dt><dd>Room of One's Own</dd>
<dt>titles</dt><dd><ul>
<li>Hyacinth Blue</li>
<li>Fabrication</li>
<li>Thanksgiving</li>
<li>Spilling the Peas</li>
</ul></dd>
<dt>submitted</dt><dd>2005-05-10</dd>
<dt>accepted</dt><dd>2005-09-01</dd>
<dt>payment received</dt><dd>2006-09-01</dd>
<dt>expenses</dt><dd><dl>
<dt>postage</dt><dd>CAD 1.12</dd>
</dl></dd>
<dt>payment</dt><dd><ul>
<li>CAD 50.00</li>
<li>2 CopIEs of Publication Issue</li>
</ul></dd>
</dl>
</div>
</content>
</entry>
</feed>