ROGERS CADENHEAD
My Websites
Workbench
Drudge Retort
SportsFilter
My Books
Teach Yourself Java in 21 Days, Eighth Edition
Teach Yourself Java in 24 Hours, Eighth Edition
Teach Yourself C++ in 24 Hours |
Day 21: Reading and Writing XML Data
Notes and Corrections
Source Files
Reader Questions
Activities
- Solution 1: This exercise is erroneous -- there is no TriviaServer project in this edition. As an alternative, write an application that displays the news headlines from technology.xml, an XML file produced by the New York Times. They're in the title element contained within each item element. A solution for the new exercise: ReadHeadlines.java, ReadHeadlines.class, and HeadlineHandler.class.

- Solution 2: CoalTotalsXML.java, CoalTotalsXML.class, CoalTotals.xml, ReadCoalTotalsXML.java, ReadCoalTotalsXML.class, CoalTotalsXMLHandler.class, CoalTotalsRecord.class, and coalData.dtd. The CoalTotalsXML application reads data from the same database as the CoalTotals application created during this chapter.

|
|