--- android/TrainInfo/src/dk/thoerup/traininfo/provider/XmlDepartureProvider.java 2009/09/01 20:28:55 294 +++ android/TrainInfo/src/dk/thoerup/traininfo/provider/XmlDepartureProvider.java 2009/09/11 08:34:57 315 @@ -26,11 +26,12 @@ StringBuilder builder = new StringBuilder(512); @Override - public void lookupDepartures(String stationCode) { + public void lookupDepartures(int stationID) { departures.clear(); try { - String url = "http://t-hoerup.dk/tog/xml_display.php?stationcode="+stationCode; + //String url = "http://t-hoerup.dk/tog/xml_display.php?stationcode="+stationCode; + String url = "http://app.t-hoerup.dk/TrainInfoService/DepartureServlet?format=xml&station=" + stationID; Log.i("xmlurl",url); String doc = DownloadUtil.getContentString(url, 45000, "ISO-8859-1"); @@ -42,7 +43,6 @@ xr.setContentHandler(this); xr.setErrorHandler(this); - xr.setDTDHandler(this); xr.parse(source); } catch (Exception e) { Log.e("XmlDepartureProvider", "looupFunction", e);