Results 1 to 5 of 5

Thread: RSS Implementaion in JavaScripts

  1. #1
    Join Date
    Jan 2009
    Posts
    65

    RSS Implementaion in JavaScripts

    hi there

    I am not a java programmer, but still trying to learn this language. I just wanted to know that elements such as rss, rdf, atom can be implemented in javascripts. is XML required for this procedure.
    Please provide some views regarding this query.

    Any help will be appreciated

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: RSS Implementaion in JavaScripts

    RSS ("Really Simple Syndication") is a web content syndication format. RSS is becoming the standard format for syndicating news content over the web. As part of my recent contract with Sun Microsystems, I was tasked with the development of a JSP Tag Library to be used by anybody with a basic understanding of RSS, JavaServer Pages, and HTML. The taglib is mostly geared towards non-technical editors of web sites that use RSS for aggregating news content. My goal was to develop a JSP tag library that would simplify the use of RSS content (versions 0.91, 0.92 and 2.0) in web pages.

    The RSS Utilities Package is the result of that project. It contains a set of custom JSP tags which make up the RSS Utilities Tag library, and a flexible RSS Parser. This document describes how to use the parser and the library provided in the RSS Utilities Package. Click here to download the first release. The zip file contains a jar file, rssutils.jar, containing the classes needed to use the utilities, and a tld file, rssutils.tld, which defines JSP custom tags for extracting information from RSS documents.

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: RSS Implementaion in JavaScripts

    The Resource Description Framework (RDF) is a standard that was designed to enable Web applications, which depend on machine-understandable metadata, and to support interoperability between such applications. It targets a number of important areas that include resource discovery, intelligent software agents, content rating, intellectual property rights, and privacy preferences. RDF is used to create models of metadata that may be understood by processing agents. It is complementary to XML, which is used to encode and transport RDF models. XML does not have an exclusive on representing RDF models; other mechanisms may be used to serve the same purpose in the future.

    The World Wide Web Consortium (W3C) has released RDF as an official recommendation and is distributing a simple RDF compiler that is, of course, implemented in Java. The compiler reads XML documents encoding RDF models and converts them to so-called triples — an internal representation used by RDF. Triples may be accessed and modified by RDF applications, which may later encode all or some of them back in XML for transfer to other applications.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: RSS Implementaion in JavaScripts

    ROME is an set of open source Java tools for parsing, generating and publishing RSS and Atom feeds. The core ROME library depends only on the JDOM XML parser and supports parsing, generating and converting all of the popular RSS and Atom formats including RSS 0.90, RSS 0.91 Netscape, RSS 0.91 Userland, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0, Atom 0.3, and Atom 1.0. You can parse to an RSS object model, an Atom object model or an abstract SyndFeed model that can model either family of formats.

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    Re: RSS Implementaion in JavaScripts

    The parser was, in a way, a by-product of the project. Although the parser was developed with the tag library in mind, it is completely self-contained, and it can be used in Java applications. To do so, however, you obviously need to know how to write at least basic Java code. (If you know how to write Hello World in the Java language, you are probably all set.)

    First download and unzip the package. Once you have added rssutils.jar to your classpath, create an instance of the RssParser interface using the RssParserFactory. Here is an example:
    RssParser parser = RssParserFactory.createDefault();
    Rss rss = parser.parse(new
    URL("http://mydomain.com/document.rss"));

    The RSS object generated by the parser is a Java object representation of the RSS document found at the provided URL. Use the methods provided by the RSS object to get a handle to other RSS objects, such as Channels and Items. The RssParser can also parse File objects and InputStream objects.

    RSS provides a simple way to add and maintain news -- as well as other content -- on your web site, from all over the web. Even though RSS is a simple XML format, parsing and extracting data out of XML documents hosted elsewhere on the web can be a bit tricky-- or at least tedious -- if you have to do it over and over again. The RSS Utilities Package leverages Custom Tag and XML Parsing technologies to make the "Real Simple Syndication" format live up to its name.

Similar Threads

  1. How to merge multiple Javascripts into one Javascript
    By Fakhry in forum Software Development
    Replies: 9
    Last Post: 12-04-2012, 02:00 AM
  2. How to use Break and Continue Statements in JavaScripts?
    By warehouse peon in forum Software Development
    Replies: 5
    Last Post: 30-01-2010, 06:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,042,389.61052 seconds with 16 queries