Answer: We use each <item> element in RSS to define an article. To define an <item> element you must have to use these three child element. 1.<title>: This is used to define the title of item. 2.<link>: This is use to define the hyperlink to the item. 3.<description>: This is use to describe an item. Example:This example explain how to use <item> element in RSS. <?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="2.0"> <channel> <title>Home Page of R4R</title> <link>http://www.r4r.co.in</link> <description>huge collection of interview questions</description> <item> <title>RSS Tutorial</title> <link>http://www.r4r.co.in/rss</link> <description>RSS tutorial on R4R</description> </item> </channel> </rss>
Question:
How to define item element in RSS? Answer:
We use each <item> element in RSS to define an article. To define an <item> element you must have to use these three child element. 1.<title>: This is used to define the title of item. 2.<link>: This is use to define the hyperlink to the item. 3.<description>: This is use to describe an item. Example:This example explain how to use <item> element in RSS. <?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="2.0"> <channel> <title>Home Page of R4R</title> <link>http://www.r4r.co.in</link> <description>huge collection of interview questions</description> <item> <title>RSS Tutorial</title> <link>http://www.r4r.co.in/rss</link> <description>RSS tutorial on R4R</description> </item> </channel> </rss>