tutoriais mais recente desenvolvimento web
 

RSS <title> , <link> , and <description> Elements


<Completa RSS Referência

Definição e Uso

Cada <item> elemento define um artigo ou "story" no feed RSS.

O <item> elemento tem três elementos filho necessários:

  • <title> - Define o título do item (eg RSS Tutorial)
  • <link> - Define o hiperlink para o item (eg http://www.w3ii.com/xml/xml_rss.html)
  • <description> - descreve o item (eg New RSS tutorial on w3ii)

Exemplo

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">

<channel>
  <title>w3ii Home Page</title>
  <link>http://www.w3ii.com</link>
  <description>Free web building tutorials</description>
   <item>
    <title>RSS Tutorial</title>
    <link>http://www.w3ii.com/xml/xml_rss.html</link>
    <description>New RSS tutorial on w3ii</description>
  </item>
  <item>
    <title>XML Tutorial</title>
    <link>http://www.w3ii.com/xml</link>
    <description>New XML tutorial on w3ii</description>
  </item>

</channel>
</rss>

Tente você mesmo "

<Completa RSS Referência