subject
Engineering, 28.02.2020 00:24 CMCM3096

Or this project your task is to update the RSS Reader program you wrote for the previous project so that it reads multiple RSS feeds and generates the same nicely formatted HTML page of links for each feed, plus an HTML index page with links to the individual feed pages. Your new program should ask the user for the name of an XML file containing a list of URLs for RSS v2.0 feeds (see below for the format of this file) and for the name of an output file in which to generate an HTML page with links to the pages for the individual RSS feeds (see below for an example). It should then read the input XML file into an XMLTree object and then process the list of RSS feeds from the XMLTree. For each RSS feed, the program should generate an HTML page with a table of links to all the news items in the feed (just like in the previous project). The program should also generate an HTML page with an index of links to the individual feed pages. Format of the Input XML DocumentThe input XML document is pretty simple. This is the general structure: ...The top-level tag, , has a required attribute, title, whose value is the title to be used in the index page; nested inside the top-level tag are 1 or more tags with the following required attributes: url, the URL of the RSS feed, name, the name to use for the link to the feed in the index page, and file, the name of the HTML file in which to generate the feed's table of links to news items (with the same format as the output in the previous project).Here is an example of a valid XML input file. Format of the HTML Output Index PageThe HTML index page should include the following information:the title as the page titlea header with the page title insidean unordered list where each item is the name of a feed linked to the feed URLYou can see an example of the index output here. MethodCreate a new Eclipse project by copying your RSSReader project and name the new project RSSAggregator. Open the src folder of this project and then open (default package). Rename the RSSReader. java file to RSSAggregator. java. Open the RSSAggregator. java file in the editor. Edit RSSAggregator. java to satisfy the problem requirements stated above. You should factor out the code in your previous project that processed the RSS feed into the following separate static method:/*** Processes one XML RSS (version 2.0) feed from a given URL converting it* into the corresponding HTML output file.** @param url* the URL of the RSS feed* @param file* the name of the HTML output file* @param out* the output stream to report progress or errors* @updates out. content* @requires out. is_open* @ensures * [reads RSS feed from url, saves HTML document with table of news items* to file, appends to out. content any needed messages]* */private static void processFeed(String url, String file, SimpleWriter out) {...}

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:20
What is the heat treatment of metals? what is the benefit of it? why and how it's useful? answer in details, do not write by hand.
Answers: 3
question
Engineering, 04.07.2019 18:20
How much power could a wind turbine produce if it had the following specifications? cp = 0.45 -d=1.2kg/m3 d=50m v 5m/s
Answers: 2
question
Engineering, 04.07.2019 18:20
For a gate width of 2 m into the paper, determine the force required to hold the gate abc at its location.
Answers: 1
You know the right answer?
Or this project your task is to update the RSS Reader program you wrote for the previous project so...
Questions
question
Social Studies, 28.06.2019 18:00
question
English, 28.06.2019 18:00
question
Biology, 28.06.2019 18:00
Questions on the website: 13722367