/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/provider/XmlDepartureProvider.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/provider/XmlDepartureProvider.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 243 by torben, Sat Aug 8 20:09:47 2009 UTC revision 244 by torben, Sun Aug 9 17:46:09 2009 UTC
# Line 75  public class XmlDepartureProvider extend Line 75  public class XmlDepartureProvider extend
75                  if (name.equals("train")) {                  if (name.equals("train")) {
76                          departures.add( tempDeparture );                          departures.add( tempDeparture );
77                  } else if (name.equals("time")) {                  } else if (name.equals("time")) {
78                          tempDeparture.setTime(builder.toString());                          tempDeparture.setTime(builder.toString().trim());
79                  } else if (name.equals("updated")) {                  } else if (name.equals("updated")) {
80                          tempDeparture.setLastUpdate(builder.toString());                          tempDeparture.setLastUpdate(builder.toString().trim());
81                  } else if (name.equals("trainnumber")) {                  } else if (name.equals("trainnumber")) {
82                          tempDeparture.setTrainNumber(builder.toString());                          tempDeparture.setTrainNumber(builder.toString().trim());
83                  } else if (name.equals("destination")) {                  } else if (name.equals("destination")) {
84                          tempDeparture.setDestination(builder.toString());                          tempDeparture.setDestination(builder.toString().trim());
85                  } else if (name.equals("origin")) {                  } else if (name.equals("origin")) {
86                          tempDeparture.setOrigin(builder.toString());                          tempDeparture.setOrigin(builder.toString().trim());
87                  } else if (name.equals("location")) {                  } else if (name.equals("location")) {
88                          tempDeparture.setLocation(builder.toString());                          tempDeparture.setLocation(builder.toString().trim());
89                  } else if (name.equals("status")) {                  } else if (name.equals("status")) {
90                          tempDeparture.setStatus(builder.toString());                          tempDeparture.setStatus(builder.toString().trim());
91                  } else if (name.equals("note")) {                  } else if (name.equals("note")) {
92                          tempDeparture.setNote(builder.toString());                          tempDeparture.setNote(builder.toString().trim());
93                  }                  }
94          }          }
95  }  }

Legend:
Removed from v.243  
changed lines
  Added in v.244

  ViewVC Help
Powered by ViewVC 1.1.20