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 dveteam.nbrmconverter; 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{ // =========================================================== // Fields // =========================================================== private boolean in_outertag = false; private boolean in_innertag = false; private boolean in_Oznaka = false; private boolean in_DrzavaAng= false; private boolean in_Sreden= false; private ArrayList list = new ArrayList(22); private ParsedExampleDataSet myParsedExampleDataSet = new ParsedExampleDataSet(); // =========================================================== // Getter & Setter // =========================================================== public ArrayList getParsedData() { return list; } // =========================================================== // Methods // =========================================================== @Override public void startDocument() throws SAXException { this.myParsedExampleDataSet = new ParsedExampleDataSet(); } @Override public void endDocument() throws SAXException { // Nothing to do } /** 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("dsKurs")) { this.in_outertag = true; }else if (localName.equals("KursZbir")) { this.in_innertag = true; }else if (localName.equals("Oznaka")) { this.in_Oznaka = true; } else if (localName.equals("Sreden")) { this.in_Sreden = true; }else if (localName.equals("DrzavaAng")) { this.in_DrzavaAng= true; } } //else if (localName.equals("tagwithnumber")) { // } // Extract an Attribute // String attrValue = atts.getValue("thenumber"); // int i = Integer.parseInt(attrValue); // myParsedExampleDataSet.setExtractedInt(i); // } /** Gets be called on closing tags like: * */ @Override public void endElement(String namespaceURI, String localName, String qName) throws SAXException { if (localName.equals("dsKurs")) { this.in_outertag = false; }else if (localName.equals("KursZbir")) { this.in_innertag = false; list.add(myParsedExampleDataSet); }else if (localName.equals("Oznaka")) { this.in_Oznaka = false; }else if (localName.equals("Sreden")) { this.in_Sreden = false; }else if (localName.equals("DrzavaAng")) { this.in_DrzavaAng= false; } } /** Gets be called on the following structure: * characters */ @Override public void characters(char ch[], int start, int length) { if(this.in_Oznaka){ myParsedExampleDataSet.setoznaka(new String(ch, start, length)); } if(this.in_DrzavaAng){ myParsedExampleDataSet.setdrzavaang(new String(ch, start, length)); } if(this.in_Sreden){ myParsedExampleDataSet.setsreden(new String(ch, start, length)); } } }