#35 [xhtml]

BART Schedule - Procedure

  1. We need to turn the input XML into a HTTP request while keeping a copy of the to/from/departing information.

  2. Make the request to the resource over HTTP.

  3. The result isn't quite valid XHTML--darn! So, we'll use tagsoup (a SAX HTML parser) to parse it as HTML to feed it as XML.

  4. www.bart.gov returns complicated stuff with lots of tables. We need to locate the right table and dump the rest.

  5. The remaining table is the train schedules--so convert that to the right XML elements.