\
Skip Navigation LinksHome > Coding > Scripting > RSS & ATOM > RSS 2.0 Reference List\
 
 
[]On-Line Courses



 

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"?> (5)
02 ? <rss version="2.0"> (5)
03 ?  nbsp;    <channel> (5)
04 ?  nbsp;       <title>{channel_title}</title> (4)
05 ?  nbsp;       <link>{channel_link}</link> (4)
06 ?  nbsp;       <description>{channel_description}</description> (4)
07 ?  nbsp;       <copyright>{channel_copyright_info}</copyright> (2)
08 ?  nbsp;       <managingEditor>{channel_email_address}</managingEditor> (2)
09 ?  nbsp;       <webMaster>{channel_email_address}</webMaster> (2)
10 ?  nbsp;       <rating>{channel_PICS_rating}</rating> (2)
11 ?  nbsp;       <pubDate>{channel_RFC_822_date}</pubDate> (2)
12 ?  nbsp;       <lastBuildDate>{channel_RFC_822_date}</lastBuildDate> (2)
13 ?  nbsp;       <docs>{channel_URL}</docs> (2)
14 ?  nbsp;       <language>{language_code}</language> (2)
15    nbsp;  
16 ?  nbsp;       <skipDays> (2)
17 ?  nbsp;          <day>{weekday_name}</day> (8)
18              [...]  
19           </skipDays>  
20    nbsp;  
21 ?  nbsp;       <skipHours> (2)
22 ?  nbsp;          <hour>{numeric_value}</hour> (9)
23              [...]  
24           </skipHours>  
25    nbsp;  
26 ?  nbsp;       <generator>{channel_generator}</generator> (2)
27 ?  nbsp;       <ttl>{channel_minutes}</ttl> (2)
28    nbsp;  
29 ?  nbsp;       <cloud domain="{URL}" port="{port}" path="{relative_path}" (2)
30    nbsp;              registerProcedure="{procedure}"  
31    nbsp;              protocol="{protocol}" />  
32    nbsp;  
33 ?  nbsp;       <image> (2)
34 ?  nbsp;          <title>{image_alt_text}</title> (6)
35 ?  nbsp;          <url>{image_url}</url> (6)
36 ?  nbsp;          <link>{image_link}</link> (6)
37 ?  nbsp;          <width>{number}</width> (7)
38 ?  nbsp;          <height>{number}</height> (7)
39          </image>  
40       
41 ?  nbsp;       <item> (4)
42 ?  nbsp;          <title>{item_title}</title> (1)
43 ?  nbsp;          <link>{item_link}</link> (1)
44 ?  nbsp;          <description>{item_description}</description> (1)
45 ?  nbsp;          <source url="{URL}">source_title</source> (1)
46 ?  nbsp;          <enclosure url="{URL}" length="{bytes}" (1)
47    nbsp;                     type="{MIME Type}" />  
48 ?  nbsp;          <category domain="{URL}">{relative_path}</category> (1)
49 ?  nbsp;          <author>{item_email}</author> (1)
50 ?  nbsp;          <comment>{item_comment_url}</comment> (1)
51 ?  nbsp;          <guid isPermaLink="True/False"> (1)
52    nbsp;                {item_guid_string}</guid>  
53 ?  nbsp;          <pubDate>{item_RFC_Date}</pubDate> (1)
54    nbsp;       </item>  
55    nbsp;  
56    nbsp;       <item>  
57    nbsp;          <title>{item_title}</title>  
58             <link>{item_link}</link>  
59             <description>{item_description}</description>  
60             [...]  
61    nbsp;       </item>  
62    nbsp;  
63 ?  nbsp;       <textInput> (2)
64 ?  nbsp;          <title>{textInput_title}</title> (3)
65 ?  nbsp;          <description>{textInput_description}</description> (3)
66 ?  nbsp;          <name>{textInput_varname}</name> (3)
67 ?  nbsp;          <link>{textInput_action_url}</link> (3)
68          </textInput>  
69       </channel>  
70  </rss>  

Legend

(1)Optional sub-element of <item>
(2)Optional sub-element of <channel>
(3)Required sub-element of <textInput>
(4)Required sub-element of <channel>
(5)Required
(6)Required sub-element of <image>
(7)Optional sub-element of <image>
(8)Required sub-element of <skipDays>
(9)Required sub-element of <skipHours>
Help Support Dx21
Buy Thru Us

 FAQs  |  Terms Of Use  |  Privacy Policy  |  Contact Us
Copyright © 1997 - 2012 Dx21, LLC. All rights reserved.
Dx21, LLC a Washington Limited Liability Company
Page Rendered at: 2/5/2012 5:53:56 AM for Unknown