/[projects]/android/Side9/src/dk/thoerup/side9/Side9Xml.java
ViewVC logotype

Diff of /android/Side9/src/dk/thoerup/side9/Side9Xml.java

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

revision 648 by torben, Wed Mar 24 07:27:34 2010 UTC revision 649 by torben, Mon Apr 19 12:49:31 2010 UTC
# Line 22  import android.util.Log; Line 22  import android.util.Log;
22    
23  public class Side9Xml {  public class Side9Xml {
24                    
25          static final int WIDTH = 300;          static final int WIDTH = 400;
26          static final String BASEURL = "http://apps.todic.net/side9/";          static final String BASEURL = "http://apps.todic.net/side9/";
27    
28          public static Document parseXML(String str) throws SAXException, IOException, ParserConfigurationException          public static Document parseXML(String str) throws SAXException, IOException, ParserConfigurationException
# Line 60  public class Side9Xml { Line 60  public class Side9Xml {
60                  String dataURL = BASEURL + "xml.php?width=" + WIDTH;                  String dataURL = BASEURL + "xml.php?width=" + WIDTH;
61                                    
62                  byte data[] = getContent( dataURL );                  byte data[] = getContent( dataURL );
63                  String xmlData = new String(data, "UTF-8");                  String xmlData = new String(data, "ISO-8859-1");
64                  Document doc = parseXML(xmlData);                                Document doc = parseXML(xmlData);              
65                                    
66                  Node rootNode = doc.getDocumentElement(); // stations                  Node rootNode = doc.getDocumentElement(); // stations

Legend:
Removed from v.648  
changed lines
  Added in v.649

  ViewVC Help
Powered by ViewVC 1.1.20