Java Reference
In-Depth Information
2.3.2. Parsing XML
Major League Baseball continuously updates the results of baseball games online. The in-
formation is kept in XML format in links descending from http://gd2.mlb.com/compon-
ents/game/mlb/ .
Onthesite thegames arearranged bydate. Drilling downfromthebaseURLrequires links
of the form "year_${year}/month_${month}/day_${day}/" , where the year
is four digits, and the month and day are two digits each. The games for that date are listed
as individual links. For example, figure 2.8 shows links for each game played on May 5,
2007. [ 8 ]
8 By an astonishing coincidence, May 5 is my son's birthday.
 
Search WWH ::




Custom Search