{"id":72,"date":"2009-06-13T03:39:00","date_gmt":"2009-06-13T07:39:00","guid":{"rendered":"http:\/\/www.searchenginegenie.com\/programming-blog\/rss-feed-coldfusion\/"},"modified":"2012-09-21T06:27:52","modified_gmt":"2012-09-21T10:27:52","slug":"rss-feed-coldfusion","status":"publish","type":"post","link":"https:\/\/www.searchenginegenie.com\/programming-blog\/rss-feed-coldfusion\/","title":{"rendered":"Rss Feed ColdFusion"},"content":{"rendered":"<p>ColdFusion is an application server and scripting language used for Internet application development such as for dynamically-generated web sites. ColdFusion is like Microsoft Active Server Pages, Java Server Pages and PHP. Similar to other server-side scripting languages, ColdFusion permits developers to build active WebPages driven by database back-ends.<\/p>\n<p>We can also create Rss feeds using ColdFusion.We can customize the code as per our wish. We can list all the titles of the postings or we can list a posting title with some content.<\/p>\n<p>Here is a sample coldfusion code for listing the blog titles.<\/p>\n<p><strong>To get the rss feed xml file<\/strong><br \/>\n<textarea style=\"background-color: #8fbc8f; font-size: 100%; border: 1px dotted;\" rows=\"1\" cols=\"60\">&lt;cfhttp url=&#8221;http:\/\/www.yoursiteurl.com\/blog\/rss.xml&#8221; method=&#8221;get&#8221;&gt;<\/textarea><br \/>\n<strong>Then parse the xmlfile by using the code given below.<\/strong><br \/>\n<textarea style=\"background-color: #8fbc8f; font-size: 100%; border: 1px dotted;\" rows=\"1\" cols=\"60\" readonly=\"readonly\">&lt;cfset variables.objRss = xmlParse(cfhttp.filecontent)&gt;<\/textarea><br \/>\n<strong>Search for the &#8220;item&#8221; tag in the xml file.Assign it to a variable.<\/strong><br \/>\n<textarea style=\"background-color: #8fbc8f; font-size: 100%; border: 1px dotted;\" rows=\"1\" cols=\"60\" readonly=\"readonly\">&lt;cfset variables.items = XmlSearch(objRss, &#8216;\/\/item&#8217;) \/&gt;<\/textarea><br \/>\n<strong>Then in a loop display all the titles.It will display 5 titles.To display all the titles, give #ArrayLen(items)# instead of &#8220;5&#8221;<\/strong><br \/>\n<textarea style=\"background-color: #8fbc8f; font-size: 100%; border: 1px dotted;\" rows=\"1\" cols=\"60\" readonly=\"readonly\">&lt;cfloop from=&#8221;1&#8243; to=&#8221;5&#8243; index=&#8221;variables.i&#8221;&gt;<\/textarea><br \/>\n<strong>Print all the titles in an anchor tag.<\/strong><br \/>\n<textarea style=\"background-color: #8fbc8f; font-size: 100%; border: 1px dotted;\" rows=\"3\" cols=\"60\" readonly=\"readonly\">&lt;cfoutput&gt;&lt;a href=&#8221;#items[i].link.xmltext#&#8221; mce_href=&#8221;#items[i].link.xmltext#&#8221; title=&#8221;#items[i].title.xmltext#&#8221;&gt;#items[i].title.xmltext#&lt;\/a&gt;&lt;\/cfoutput&gt;<\/textarea><br \/>\n<strong>Loop ends here.<\/strong><br \/>\n<textarea style=\"background-color: #8fbc8f; font-size: 100%; border: 1px dotted;\" rows=\"1\" cols=\"60\" readonly=\"readonly\">&lt;\/cfloop&gt;<\/textarea><\/p>\n<p>After using the above code, Output will be as given below.<\/p>\n<p><a onblur=\"try {parent.deselectBloggerImageGracefully();} catch(e) {}\" href=\"http:\/\/www.searchenginegenie.com\/programming\/uploaded_images\/aaat-752332.gif\"><img decoding=\"async\" style=\"float: left; margin: 0px 10px 10px 0px; width: 259px; cursor: hand; height: 289px;\" src=\"http:\/\/www.searchenginegenie.com\/programming\/uploaded_images\/aaat-752330.gif\" alt=\"\" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ColdFusion is an application server and scripting language used for Internet application development such as for dynamically-generated web sites. ColdFusion is like Microsoft Active Server Pages, Java Server Pages and PHP. Similar to other server-side scripting languages, ColdFusion permits developers to build active WebPages driven by database back-ends. We can also create Rss feeds using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[17,18],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-programming","tag-coldfusion","tag-rss-feed"],"_links":{"self":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":4,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":578,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/72\/revisions\/578"}],"wp:attachment":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}