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.warriorpoint.androidxmlsimple; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; import com.warriorpoint.androidxmlsimple.Message; import android.sax.Element; import android.sax.EndElementListener; import android.sax.EndTextElementListener; import android.sax.RootElement; import android.util.Xml; public class BaseFeedParser { static String feedUrlString = "http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=YahooDemo" + "&query=bank&latitude=40.5141667&longitude=-88.9905556&radius=2&results=5"; // names of the XML tags static final String RESULTSET = "ResultSet"; static final String RESULT = "Result"; static final String TITLE = "Title"; static final String ADDRESS = "Address"; private final URL feedUrl; protected BaseFeedParser(){ try { this.feedUrl = new URL(feedUrlString); } catch (MalformedURLException e) { throw new RuntimeException(e); } } protected InputStream getInputStream() { try { return feedUrl.openConnection().getInputStream(); } catch (IOException e) { throw new RuntimeException(e); } } public List parse() { final Message currentMessage = new Message(); RootElement root = new RootElement(RESULTSET); final List messages = new ArrayList(); Element itemlist = root.getChild(RESULT); itemlist.setEndElementListener(new EndElementListener(){ public void end() { messages.add(currentMessage.copy()); } }); itemlist.getChild(TITLE).setEndTextElementListener(new EndTextElementListener(){ public void end(String body) { currentMessage.setTitle(body); } }); try { Xml.parse(this.getInputStream(), Xml.Encoding.UTF_8, root.getContentHandler()); } catch (Exception e) { throw new RuntimeException(e); } return messages; } }