public void endElement(String uri, String localName, String elementName) {
		
		if (TAG_TRACK_POINT.equals(elementName)) {
			foundTrackPoint = false;
			
			if(latitude != null && longitude != null && elevation != null && time != null) {
				this.gpsPoints.add(new GpsPoint(Double.parseDouble(latitude), Double.parseDouble(longitude), Double.parseDouble(elevation), time));
			} else {
				System.out.println(LABEL + "the XML file is malformted");
			}
		} else if(TAG_ELEVATION.equals(elementName)) {
			foundElevation = false;
		} else if(TAG_TIME.equals(elementName)) {
			foundTime = false;
		}
	}