Below is a sample RSS 2.0 file, formatted correctly and utilizing all tags.
Select the question mark at the beginning of the specific line to view complete
syntax details for the element.
| 01 |
?
| <?xml version="1.0"?> |
Required |
| 02 |
? | <rss version="2.0"> |
Required |
| 03 |
? |
<channel> |
Required |
| 04 |
? |
<title>{channel_title}</title> |
Required sub-element of <channel> |
| 05 |
? |
<link>{channel_link}</link> |
Required sub-element of <channel> |
| 06 |
? |
<description>{channel_description}</description> |
Required sub-element of <channel> |
| 07 |
? |
<copyright>{channel_copyright_info}</copyright> |
Optional sub-element of <channel> |
| 08 |
? |
<managingEditor>{channel_email_address}</managingEditor> |
Optional sub-element of <channel> |
| 09 |
? |
<webMaster>{channel_email_address}</webMaster> |
Optional sub-element of <channel> |
| 10 |
? |
<rating>{channel_PICS_rating}</rating> |
Optional sub-element of <channel> |
| 11 |
? |
<pubDate>{channel_RFC_822_date}</pubDate> |
Optional sub-element of <channel> |
| 12 |
? |
<lastBuildDate>{channel_RFC_822_date}</lastBuildDate> |
Optional sub-element of <channel> |
| 13 |
? |
<docs>{channel_URL}</docs> |
Optional sub-element of <channel> |
| 14 |
? |
<language>{language_code}</language> |
Optional sub-element of <channel> |
| 15 |
| |
|
| 16 |
? |
<skipDays> |
Optional sub-element of <channel> |
| 17 |
? |
<day>{weekday_name}</day> |
Required sub-element of <skipDays> |
| 18 |
|
[...] |
|
| 19 |
|
</skipDays> |
|
| 20 |
| |
|
| 21 |
? |
<skipHours> |
Optional sub-element of <channel> |
| 22 |
? |
<hour>{numeric_value}</hour> |
Required sub-element of <skipHours> |
| 23 |
|
[...] |
|
| 24 |
|
</skipHours> |
|
| 25 |
| |
|
| 26 |
? |
<generator>{channel_generator}</generator> |
Optional sub-element of <channel> |
| 27 |
? |
<ttl>{channel_minutes}</ttl> |
Optional sub-element of <channel> |
| 28 |
| |
|
| 29 |
? | <cloud domain="{URL}" port="{port}" path="{relative_path}" |
Optional sub-element of <channel> |
| 30 |
|
registerProcedure="{procedure}" |
|
| 31 |
|
protocol="{protocol}" /> |
|
| 32 |
| |
|
| 33 |
? |
<image> |
Optional sub-element of <channel> |
| 34 |
? |
<title>{image_alt_text}</title> |
Required sub-element of <image> |
| 35 |
? |
<url>{image_url}</url> |
Required sub-element of <image> |
| 36 |
? |
<link>{image_link}</link> |
Required sub-element of <image> |
| 37 |
? |
<width>{number}</width> |
Optional sub-element of <image> |
| 38 |
? |
<height>{number}</height> |
Optional sub-element of <image> |
| 39 |
|
</image> |
|
| 40 |
| |
|
| 41 |
? |
<item> |
Required sub-element of <channel> |
| 42 |
? |
<title>{item_title}</title> |
Optional sub-element of <item> |
| 43 |
? |
<link>{item_link}</link> |
Optional sub-element of <item> |
| 44 |
? |
<description>{item_description}</description> |
Optional sub-element of <item> |
| 45 |
? |
<source url="{URL}">source_title</source> |
Optional sub-element of <item> |
| 46 |
? |
<enclosure url="{URL}" length="{bytes}" |
Optional sub-element of <item> |
| 47 |
|
type="{MIME Type}" /> |
|
| 48 |
? |
<category domain="{URL}">{relative_path}</category> |
Optional sub-element of <item> |
| 49 |
? |
<author>{item_email}</author> |
Optional sub-element of <item> |
| 50 |
? |
<comment>{item_comment_url}</comment> |
Optional sub-element of <item> |
| 51 |
? |
<guid isPermaLink="True/False"> |
Optional sub-element of <item> |
| 52 |
|
{item_guid_string}</guid> |
|
| 53 |
? |
<pubDate>{item_RFC_Date}</pubDate> |
Optional sub-element of <item> |
| 54 |
|
</item> |
|
| 55 |
| |
|
| 56 |
|
<item> |
|
| 57 |
|
<title>{item_title}</title> |
|
| 58 |
|
<link>{item_link}</link> |
|
| 59 |
|
<description>{item_description}</description> |
|
| 60 |
|
[...] |
|
| 61 |
|
</item> |
|
| 62 |
| |
|
| 63 |
? |
<textInput> |
Optional sub-element of <channel> |
| 64 |
? |
<title>{textInput_title}</title> |
Required sub-element of <textInput> |
| 65 |
? |
<description>{textInput_description}</description> |
Required sub-element of <textInput> |
| 66 |
? |
<name>{textInput_varname}</name> |
Required sub-element of <textInput> |
| 67 |
? |
<link>{textInput_action_url}</link> |
Required sub-element of <textInput> |
| 68 |
|
</textInput> |
|
| 69 |
|
</channel> |
|
| 70 |
| </rss> |
|