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

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

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

revision 309 by torben, Mon Sep 7 13:23:48 2009 UTC revision 310 by torben, Thu Sep 10 19:09:09 2009 UTC
# Line 12  import javax.xml.parsers.ParserConfigura Line 12  import javax.xml.parsers.ParserConfigura
12  import org.w3c.dom.Document;  import org.w3c.dom.Document;
13  import org.w3c.dom.Node;  import org.w3c.dom.Node;
14  import org.w3c.dom.NodeList;  import org.w3c.dom.NodeList;
 import org.w3c.dom.Text;  
15  import org.xml.sax.SAXException;  import org.xml.sax.SAXException;
16    
17  import android.location.Location;  import android.location.Location;
# Line 67  public class XmlStationProvider implemen Line 66  public class XmlStationProvider implemen
66                                                                                    
67                                          Log.i("XML", "" + nodeName + "=" + content);                                          Log.i("XML", "" + nodeName + "=" + content);
68                                                                                    
69                                            if (nodeName.equals("id"))
70                                                    station.setId( Integer.parseInt(content));
71                                            
72                                          if (nodeName.equals("name"))                                          if (nodeName.equals("name"))
73                                                  station.setName(content);                                                  station.setName(content);
74                                                                                    

Legend:
Removed from v.309  
changed lines
  Added in v.310

  ViewVC Help
Powered by ViewVC 1.1.20