The arguments continue to rage on the ambiguities in the RSS specifications. But the fact is: RSS is here to stay, and the current defined RSS 2.0 specification is likely to be so good that he is going to get. Attempts have been made to create "best practices" documents and details of the specification. We felt, that it would be helpful to provide general guidelines for the construction of an RSS 2.0 feed. In General, the following are the guidelines for the construction of an RSS feed. It is good to make a habit of validating the RSS software, with either a validator online. Here are some general guidelines for the creation of RSS feeds: 1. Enclosures include only a single enclosure section for maximum compatibility. The RSS 2.0 specification does not clearly state whether multiple enclosures are allowed or not, but most RSS readers will only support a single enclosure. Therefore, it is preferable to meet readers and include only a single enclosure in each RSS feed item. 2 date Formats Date formats can be very difficult. Make sure that all dates are correctly formatted. 3 encodingEncoding is required for certain characters. If you use software to create the flow, it must manage the coding of characters for you. 4 html while the specification is not explicit, it is generally a good idea not to use coding in channel titles or an HTML element. For maximum compatibility of power, the only place where you must use HTML is the RSS Feed Item Description. 5 guid GUID (globally unique identifiers) are not necessary. However, editors are encouraged to use a unique string in the GUID field. Many RSS readers look for GUID changes to determine if new items are available in an RSS feed. 6 Images if you include an image with the food, the size of the proposed image is 88 x 31 (the maximum size is 144 x 400). If you include an image in the fields in the item Description or enclosure of the RSS, it has no size limitation, but keep in mind that excessively large graphics will be negative impact on the amount of time it takes to load the feed. 7 Favicons Some RSS readers and search engines will display the favicon in the field of accommodation by a RSS feed from the list. So that your feed stand out, be sure that you include a favicon in the root directory of your Web site's domain. 8 urluse "absolute" URLs for images, Web sites and links, not the URL "relative". The intent of RSS is to syndicate content, so RSS feed may not always be local to the person who listens to the food. Therefore, the full web path for all images, Web sites and the links should be used. In other words, do not use ".../ImageUrl.gif", use instead the full URL "http://www.mydomain.com/imageurl.gif" when linking to any content. 9 Titlesuse a good title for the channel feed and RSS feed elements. Most RSS directories and search engines use the words in the title of channel and item title to classify the RSS feeds.10. Mime typesif you include a file in the area of the premises of an RSS feed, be sure to correctly set the "file size" and the "mime type" the enclosure of the file. A list of the appropriate mime type formats can be found here - http://www.feedforall.com/mime-types.htm. 11 Auto-discovery include RSS feed "auto-discovery" code in your HTML page header. This will allow certain browsers and RSS feed readers automatically know that an RSS feed is available for specific content. Tool to create an AutoDiscovery Code - http://www.feedforall.com/autodiscovery.htm12. Volume the number of elements contained in a stream is important. A history and expand the food on a regular basis. Prune the RSS if it becomes too long. This will accelerate the loading of RSS. about the author:
Sharon Housley manages marketing for the software of FeedForAll http://www.feedforall.com to create, review, the publication of RSS feeds and podcasts. In addition Sharon manages marketing for RecordForAll http://www.recordforall.com audio recording and editing software.
没有评论:
发表评论