@Override
    public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {

        thisElement = qName;
        String temperature = "";
        if (qName.equals("yweather:location")) {
            Location location = new Location();
            location.setCity(attributes.getQName(0));
            location.setRegion(attributes.getQName(1));
            location.setCountry(attributes.getQName(2));

            inf.setLocation(location);
            list.add(location);
        }

        if (qName.equals("yweather:forecast")) {

            for (int i = 0; i < attributes.getLength(); i++) {
                temperature += attributes.getQName(i) + "=" + attributes.getValue(i) + " ";
            }
            temperatures.add(temperature);
            list.add(temperature);

            String code = (String) attributes.getValue(1);
            String date = (String) attributes.getValue(2);
            String day = (String) attributes.getValue(3);
            String high = (String) attributes.getValue(4);
            String low = (String) attributes.getValue(5);
            String text = (String) attributes.getValue(6);
            weatherinf.add(new NewInfWeather(code, date, day, high, low, text));

        }

    }