subject
Computers and Technology, 18.06.2020 18:57 Lnjayy

The Problem RSS (Really Simple Syndication) is an XML application for distributing web content that changes frequently. Many news-related sites, weblogs and other online publishers syndicate their content as an RSS Feed to whoever wants it.
For this project your task is to write a program that asks the user for the URL of an RSS 2.0 feed and for the name of an output file, reads the RSS feed into an XMLTree object and then uses the information in the XMLTree object to generate in the output file a nicely formatted HTML page with table of links to all the news items in the original feed.
Input: RSS 2.0 XML Document
Here is a simplified description of the structure of an RSS 2.0 XML document. RSS 2.0 documents can contain a few other tags and features, but these are the ones you will need for the project.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Title goes here
Link goes here
Description goes here

Optional title goes here
Optional description goes here
Optional link goes here
Optional publication date goes here
Optional source goes here
...
...

Note the following properties of RSS 2.0 XML documents:
The children of the tag and of the tag can occur in any order; do not assume they will appear in the order above. Furthermore there can be other children of other types not listed above.
, , and are required children of the tag, i. e., you should assume they are present.
All the children of tag are optional, i. e., do not assume they are present; however, either or must be present.
If a tag appears as a child of an tag, it must have a url attribute.
Note that when your program creates an XMLTree object from a given RSS 2.0 feed, if it is successful, all you know is that the input is a valid XML document. It is up to your program to check that the label of the root of the XMLTree is an tag and that it has a version attribute with value "2.0". After that, your program can assume that the input is indeed a valid RSS 2.0 feed and the XMLTree has the structure described above; in other words, you do not need to check for the existence of the tag, or the , , and tags inside that. However, make sure you do not make any assumptions that are not specified in the structure described above.
Output: HTML Web Page
These are the minimum requirements for the generated web page. If you think you can produce better output or include more information, you should consult your instructor to make sure that any changes you want to implement are acceptable. This is what your output should include:
the title as the page title
a header with the page title inside a link to the link
a paragraph with the description
a table with appropriate headers; each row should correspond to one news item with the following columns:
the publication date, if present, or "No date available"
the source, if present, which should be linked to the source url, or "No source available"
the title, if present, otherwise the description, which should be linked if a link for the news item is available
You can see an example of the output here (note that the links may be outdated and no longer available).
Method
Create a new Eclipse project by copying ProjectTemplate and name the new project RSSReader.
Open the src folder of this project and then open (default package). As a starting point you can use any of the Java files. Rename it RSSReader and delete the other files from the project. Open the RSSReader. java file in the editor.
Follow the link to RSSReader. java, select all the code on that page, copy it to the clipboard, and paste it into Eclipse's editor window to replace the skeleton code.
Edit RSSReader. java to satisfy the problem requirements stated above by completing the methods provided.
Select your Eclipse project RSSReader (not just some of the files, but the whole project), create a zip archive of it, and submit the zip archive to the Carmen dropbox for this project, as described in Submitting a Project.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Write a method named addall that could be placed inside the hashintset class. this method accepts another hashintset as a parameter and adds all elements from that set into the current set, if they are not already present. for example, if a set s1 contains [1, 2, 3] and another set s2 contains [1, 7, 3, 9], the call of s1.addall(s2); would change s1 to store [1, 2, 3, 7, 9] in some order. you are allowed to call methods on your set and/or the other set. do not modify the set passed in. this method should run in o(n) time where n is the number of elements in the parameter set passed in.
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
Animations and transitions are added from the
Answers: 1
You know the right answer?
The Problem RSS (Really Simple Syndication) is an XML application for distributing web content that...
Questions