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 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
question
Engineering, 04.07.2019 18:20
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa.s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
Answers: 3
question
Engineering, 04.07.2019 19:20
Acompressor compresses a gas, a pump compresses a liquid. for a given pressure ratio, why does it take more work to compress a gas in a compressor than a liquid in a pump? a)- for a given pressure ratio the average specific volume for a gas is much higher than the average specific volume for a liquid. b)- there is no difference. the only difference is the amount of heat generated (not work) c)- for a given pressure ratio the average volurge for a gas is much higher than the average volume for a liquid. d)-there is no difference
Answers: 3
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
Mathematics, 16.02.2022 14:00