2011-12-10 6 views
0

私はAtomフィードの新機能です。私は基本的なフィードを設定したいと思います。私は何のURLを作成しますか(そして私のアプリから電話しますか?)。フィードに必要な文書はいくつですか?おそらくこのようなxmlを含むドキュメント:Atom 1.0フィードの設定方法は?

<?xml version="1.0" encoding="utf-8"?> 

<feed xmlns="http://www.w3.org/2005/Atom"> 

     <title>Example Feed</title> 
     <subtitle>A subtitle.</subtitle> 
     <link href="http://example.org/feed/" rel="self" /> 
     <link href="http://example.org/" /> 
     <id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id> 
     <updated>2003-12-13T18:30:02Z</updated> 
     <author> 
       <name>John Doe</name> 
       <email>[email protected]</email> 
     </author> 

     <entry> 
       <title>Atom-Powered Robots Run Amok</title> 
       <link href="http://example.org/2003/12/13/atom03" /> 
       <link rel="alternate" type="text/html" href="http://example.org/2003/12/13/atom03.html"/> 
       <link rel="edit" href="http://example.org/2003/12/13/atom03/edit"/> 
       <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> 
       <updated>2003-12-13T18:30:02Z</updated> 
       <summary>Some text.</summary> 
     </entry> 

</feed> 

xmlデータを含むドキュメントを参照する追加のHTMLドキュメントが必要ですか?

答えて

1

答えはあなたの質問である:

この

のようなXMLを含むだけで文書がシンジケーションフィードは、XMLデータです。それらを静的に(XMLファイル)実装することも、動的に実装することもできます(たとえば、XML文字列を返すPHPスクリプト)。

あなたは正しい軌道に乗っています。

関連する問題