@Override
	public void endElement(String namespaceURI, String localName, String qName)
	throws SAXException {
		
		String v = sb.toString();
		if(qName.length() == 0) qName = localName;
		
	//	System.out.println("End element: localname: "+localName+" qname: "+qName+" value: "+v);
		
		if(qName.equals("name")) {
			
			currentGroup.setName(v);
			
		} else if(qName.equals("ref")) {
			
			currentGroup.setRef(v);
			
		} else if(qName.equals("lat")) {
			
			currentGroup.setLatitude((Double.valueOf(v)));
			
		} else if(qName.equals("long")) {
			
			currentGroup.setLongitude((Double.valueOf(v)));
			
		} else if(qName.equals("group")) {
			
			parsedData.add(currentGroup);
			
		} else if(qName.equals("error")) {
			
			throw new SAXException(v);
			
		}

	}