Engineering
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) {...}

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, abdirahmansoloman
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
image
Engineering, 04.07.2019 18:10, skpdancer1605
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
image
Engineering, 04.07.2019 18:10, lerasteidl
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
image
Engineering, 04.07.2019 18:10, Candi9697
A-mn has a cubic structure with a0 0.8931 nm and a density of 7.47 g/cm3. b-mn has a different cubic structure, with a0 0.6326 nm and a density of 7.26 g/cm3. the atomic weight of manganese is 54.938 g/mol and the atomic radius is 0.112 nm. determine the percent volume change that would occur if a-mn transforms to b-mn.
Answers: 2
Do you know the correct answer?
Or this project your task is to update the RSS Reader program you wrote for the previous project so...

Questions in other subjects: