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)
import java.util.ArrayList; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; public class ExampleHandler extends DefaultHandler { //test tags see if we have to parse the whole document //or only the part we want ??? private boolean in_curr_tag = false; private boolean in_obs_tag = false; //ArrayList to hold all the time we hit the closing tags private ArrayList list = new ArrayList(22); private ParsedExampleDataSet peds = new ParsedExampleDataSet(); public ParsedExampleDataSet getParsedData(){ return this.peds; } @Override public void startDocument() throws SAXException { this.peds = new ParsedExampleDataSet(); } @Override public void endDocument() throws SAXException { //nothing to do here } /* * Gets be called on opening tags like * * Can provide attribute(s), when xml was like: * */ @Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts)throws SAXException{ if(localName.equals("frbny:CURR")){ this.in_curr_tag = true; }else if(localName.equals("frbny:OBS_VALUE")){ this.in_obs_tag = true; } } //Called on closing tags like @Override public void endElement(String namespaceURI, String localName, String qName) throws SAXException{ if(localName.equals("frbny:CURR")){ //add all 22 tags to the ArrayList for(int i = 1; i < list.size(); i++){ list.add(i, peds); } //testing purposes only //peds.setExtractedInt(list.size()); this.in_curr_tag = false; }else if(localName.equals("frbny:OBS_VALUE")){ this.in_obs_tag = false; } } /** Gets be called on the following structure: * characters */ @Override public void characters(char ch[], int start, int length) { if(this.in_curr_tag){ peds = list.get(0); peds.setExtractedString(new String(ch, start, length)); } if(this.in_obs_tag){ peds.setExtractedDouble(Double.parseDouble(new String(ch, start, length))); } } }