RSS <item> Element

Kowacce <item> asali za'a bayi ko'yarin kanan "story" a kan RSS feed.

<item> asali

Kai gani hanyar:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0"><channel>
  <title>CodeW3C.com Home Page</title>
  <link>http://www.codew3c.com</link>
  <description>Free web building tutorials</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.codew3c.com/rss</link>
    <description>New RSS tutorial on CodeW3C.com</description>
  </item>
</channel></rss>

Duk da kai tsaye da kara bayanin da aka kwatanta, kowane <item> elementan za ake gudanin abin da ke RSS feed

<item> elementan na ke ake gudanin abin da ke suka da abin na suka da abin da ke bayanin

  • <title> - tukara abin da ke bayanin abin (masu misali, koyarwa na RSS)
  • <link> - tukara abin da ke bayanin abin (masu misali, http://www.codew3c.com/rss)
  • <description> - tukara abin da ke bayanin abin (masu misali, koyarwa na RSS da ke CodeW3C)

Baiwa, akwaiyyukan <item> na suka da abin da za a gudanin kwanan nan, aza a kara bayanin kwanan nan da kudancin da ke za su kama

<author> elementan

<author> elementan na ke aiki ne don kara bayanin abin na gidan yanar gizo na abin

Kware:Don kara kariya takunin rai, kwarara dama dama ke so da a yi amfani da <author> elementan

Kware da akwaiyyukan na RSS na yau, abin da ake gudanin abin yau zai yi wa:

<author>service@codew3c.com</author>

<comments> elementan

<comments> elementan na ke aiki ne don kama abin a kuma kama abin da ke bayanin abin

Kware da akwaiyyukan na RSS na yau, abin da ake gudanin abin yau zai yi wa:

<comments>http://www.codew3c.com/comments</comments>

<enclosure> elementan

<enclosure> elementan na ke aiki ne don tsontai wucin abin a kuma tsontai a cikin abin

<enclosure> elementan da da suka da ake gudanin akwaiyyukan

  • url - tukara URL da ke hada da wucin abin
  • length - tukara burin bayanai na ake gudanin wucin abin da takunin
  • type - tukara tsa alama takunin da wucin abin da ake gudanin

In the above RSS document, the media files included in the project may be like this:

<enclosure url="http://www.codew3c.com/rss/rss.mp3" length="5000" type="audio/mpeg" /> 

RSS <item> Reference Manual

Element Description
<author> Optional. Specifies the email address of the project author.
<category> Optional. Defines one or more categories to which this project belongs.
<comments> Optional. Allows the project to be connected to comments (files) related to this project.
<description> Required. Describes this project.
<enclosure> Optional. Allows a media file to be imported into an item.
<guid> Optional. Defines a unique identifier for the project.
<link> Required. Defines the hyperlink pointing to this project.
<pubDate> Optional. Defines the last published date of this project.
<source> Optional. Specifies a third-party source for this project.
<title> Required. Defines the title of this project.