RSS all-round contact

xiaoxiao2021-03-06  80

You may be familiar with RSS and unfamiliar. It is familiar with you will see its figure on the international website or domestic formal "blog) website. It usually RSS0.9, RSS1.0, RSS2.0 or XML like a tag showing people, and strange is when you click on these tags, it is not your usual picture plus text, but a string XML Documentation. So, what is RSS? Let's take a full-scale contact.

RSS tag

(see picture 1)

Introduction to RSS

RSS is an abbreviation that can be expressed in a variety of extensions. Officially "RDF Summary", but it can also be explicated as "real Simple syndication", "Rich Site Summary". RSS is an application of XML technology. RSS can extract the latest news headlines, news outline, news connection, website logo, etc. from the website to form an XML document. It is swapped through the Internet Protocol (Most RSS Exchange is the simple HTTP GET of the RSS document), and you can use RSS NewsReader (a application that converts XML documents into you can read) Read it.

Maybe you will ask: I type the latest news directly on IE, I can see the latest news, why should I use RSS? Imagine, if you want to read the news of CNN, BBC, ABC News and Microsoft MSDN, you have to spend more time on your web browser, and spend more time on a web page Look for information you need. Or you may want to read the latest articles of "blog" you appreciate, but their articles are placed on different websites. Is there a way to read their masterpiece once? The emergence of RSS solves the above problems. You can type the RSS feed URL in your RSS NewsReader (that is, the URL connected to the RSS or XML tag), then RSS NewsReader will give you the information you need once. look. In fact, the emergence of RSS is adapted to network information personalized demand. We face massive information every day. If you enter a keyword in Google, you will have thousands of web directory, and we need it. Dozens of dozens of, how do you only have information we are interested in us, and ignore other useless information? Network developers put forward the concept of personalization, and RSS is one of its applications.

The emergence of RSS also provides huge convenience for the management of the website with "blog". They don't have to worry about people who don't pay attention to their website because they are afraid of trouble, as long as they provide RSS feed, people can easily browse their latest information, which is a good way to improve your browsing.

RSS is created in 1999 in 1999, which allows you to get content in many information sources into the NetCenter portal (this portal is no longer existed). Web fanatic enthusiasts in the Userland community have become the early supporters of RSS, and RSS will soon become a very popular format. Now you can see that RSS has three versions, named RSS0.9, RSS1.0 and RSS2.0. The relationship between them is not a general version upgrade, but there is a certain difference. RSS0.9 is an RDF-based approach that is the purpose of using a large number of RDF tools and modules. RSS1.0 chooses a more tightened way, RSS2.0 is a new version of non-RDF variants. Now the world's largest blog site, Google's bloger.com application is another format called Atom. Although the RSS now has a variety of versions, RSS is still one of the most successful XML services, which has become a community standard for exchange content information through the Web site. Now, many international portals, "blog" sites are using it. The blogging community is the main user of RSS. RSS look

Let's take a look at the true face of RSS. (As an example of RSS1.0)

-------------------------------------------------- ------------

XMLns: rdf = "

http://www.w3.org/1999/02/222rdfsyntaxns# "XMLns: DC ="

http://purl.org/dc/elements/1.1/ "XMLns: SY ="

http://purl.org/rss/1.0/modules/syndication/ "

XMLns: admin = "

http://webns.net/mvcb/ "

XMLNS = "

http://purl.org/rss/1.0/ ">>

-------------------------------------------------- ------------

First, declare this is an XML file, and there is his namespace. In fact, this is basically the same.

Next is the body of RSS. Everyone knows that XML is the same, the RSS is the same. It has 4 paragraphs: Channel, Image, Item, And Text INPUT, where Channel, Item, is required, other optional.

The Channel (Channel) element contains several needs of this RSS: <link> <description> <creator> <language>, etc.</p> <p>-------------------------------------------------- ------------</p> <p><channel></p> <p><title> gwzone news </ title></p> <p><link></p> <p>http://www.gwzone.com </ limited</p> <p><Description> Guangdai Line News </ description></p> <p><Language> GB2312 </ Language></p> <p></ CHANNEL></p> <p>-------------------------------------------------- ------------</p> <p>Image (image) element is an optional element. Mainly used to define the LOGO of the website. The following definition is a website logo called News Loge, which is 88 * 31-size addresses http://news.gdufs.edu.cn/images/logo.gif pictures, when you click on the image</p> <p>Http://news.gdufs.edu.cn connection.</p> <p>-------------------------------------------------- -----------</p> <p><iMage></p> <p><Title> News logo </ title></p> <p><url></p> <p>http://secwww.gdufs.edu.cn/gwzone/images/logo ,gif </ url></p> <p><link></p> <p>http://www.gwzone.com <link></p> <p><width> 88 </ width></p> <p><HEIGHT> 31 </ height></p> <p></ iMage></p> <p>-------------------------------------------------- ----------------</p> <p>Item (item) element is an important part of RSS. He is a part that often changes in the RSS document. If the RSS is provided, the Item element is included in the news, including news headline, connection, brief overview, author, update time, etc.; Item contains the title, connection, introduction, time, etc. of the article.</p> <p>-------------------------------------------------- -------------</p> <p><item></p> <p><title> java2 in navigator 5? </ title></p> <p><link></p> <p>http://www.mozillazine.org/talkback.html?article=607 </ link></p> <p><Description> Will Java2 Be an INTEGRATED PART OF NAVIGATOR 5?</p> <p>Read more About It in this Discussion ... </ description></p> <p></ item></p> <p>-------------------------------------------------- -------------</p> <p>Text INPUT is displayed as an HTML form, which can be used as a reader feedback, subscribe to the message, and search.</p> <p>-------------------------------------------------- ----------------</p> <p><textInput></p> <p><title> send </ title></p> <p><Description> Comments About mozillazine? </ description></p> <p><name> responsetext </ name></p> <p><link></p> <p>http://news.gdufs.edu.cn/comment.asp </ link></p> <p></ textInput></p> <p>-------------------------------------------------- ---------------</p> <p>Next, don't forget to write it.</p> <p>-------------------------------------------------- --------------- </ rdf: rdf></p> <p>-------------------------------------------------- ---------------</p> <p>Haha, is a RSS document easy? You can use your favorite notepad, EditPlus, or XML Editor to write RSS documents. But every time I update has to rewrite the RSS. It will be very troublesome, no problem, you can also use Java, PHP, Perl, and ASP to dynamically generate RSS. In a RSS document, you can find that Channel, Image and Text Imprut are constant, only Item is a dynamically updated. As for how to dynamically generate RSS in programming language, it will not be described here.</p> <p>How to read RSS</p> <p>Say above, read RSS with RSS NewsReader (a application that converts XML documents into text and images you can read). If you type a few keywords on the RSS NewsReader on Google, you will find a lot of software. However, many RSS NewsReaders are not well supported by Chinese, and there will be garbled when reading Chinese RSS. Below I want to introduce the feeddemo reader, the interface is simple, easy to use, and multiple languages ​​can be selected.</p> <p>It is also very simple to install this software. It requires 2.27MB of hard disk space.</p> <p>The official download address of the trial version is</p> <p>http://www.bradsoft.com/download/</p> <p>(See Figure 2)</p> <p>As long as you have been pressing "Next", you can complete the installation. Welcome page will appear after installation, then choose the language used, usually Simple Chinese. Next is the instructions, read it carefully, you will quickly grasp it. The following is the interface of FeedDemo.</p> <p>(See Figure 3)</p> <p>According to the default installation, there are several categories such as News, Healthy, Spotrs, Entertaments, Software, including ABC News, BBC News, NewYork Times, Yahoo News, etc. Dozens of RSS channels. Increasing new channels is simple, just click "Add Channel", "New Channel" dialog box appears.</p> <p>(See Figure 4)</p> <p>Select "I will enter this newsfeed URL", then enter the URL to provide the RSS feed service (that is, the URL connected to the RSS or XML tag). Here I entered the RSS service of Guangliu News:</p> <p>Http://secwww.gdufs.edu.cn/gwzone/news/rss.asp, and confirm the automatic discovery and verify the newsfeed options, no accident, an extensive online news RSS service will be added to FeedDemo.</p> <p>Remember the channel title here? That is the Title in the Channel element in the RSS document. After choosing which channel group added to the export online news, I will tell.</p> <p>Let's introduce a few better RSS newsfeed addresses:</p> <p>Http://msdn.microsoft.com/rss.xml Microsoft MSDN News</p> <p>Http://www.blueidea.com/tech/rss.xml Blue Ideal Technical Document Update</p> <p>Http://www.blogcn.com/user_rs.asp blogcn.com All "Blog" articles update</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-104925.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="104925" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.048</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'mNRqrhp3_2FzCWFTBphMobmfFqWhLxhQluP9EbOFs0B_2FEC_2Bok4Cc_2FhnM2adbZyZ4BoTt5jGi7GWTcr2DWq'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>