Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package com.alex.xml; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.Vector; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.Attributes; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.DefaultHandler; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class XML extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); TextView tv = new TextView(this); try { URL url = new URL ("http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=YahooDemo&query=bank&latitude=40.5141667&longitude=-88.9905556&radius=2&results=4"); Vector test = read(url.openStream()); String text = ""; for (int i=0; i read(InputStream in) { SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp; try { sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); ContentHandler ch = new ContentHandler(); xr.setContentHandler(ch); xr.parse(new InputSource(in)); return ch.getPDataSet(); } catch (Exception e) { } return null; } } class ParsedExampleDataSet { private String Title; public String getTitle() { return Title; } public void setTitle(String Title) { this.Title = Title; } } class ContentHandler extends DefaultHandler { private boolean in_titleTag = false; private ParsedExampleDataSet DataSet; private Vector myPEDataSet; public ContentHandler() { super(); this.myPEDataSet = new Vector(); } public Vector getPDataSet() { return this.myPEDataSet; } public void startDocument() throws SAXException { } public void endDocument() throws SAXException { } @Override public void startElement(String n, String l, String q, Attributes atts) throws SAXException { if (l.equals("Title")) { this.in_titleTag = true; } if (l.equals("Result")) { DataSet = new ParsedExampleDataSet(); } } @Override public void endElement(String n, String l, String q) throws SAXException { if (l.equals("Title")) { this.in_titleTag = false; } if (l.equals("Result")) { myPEDataSet.add(DataSet); } } @Override public void characters(char[] ch, int start, int length) throws SAXException { if (in_titleTag) { DataSet.setTitle(new String(ch, start, length)); } } }