Code example for Attributes

Methods: getValue

0
		tempVal = new StringBuilder();
		 
		if(qName.equalsIgnoreCase("goal")) {
			tmp_ = new Goal();
			//create a new instance of employee 
			tmp_.setId(Integer.parseInt(attributes.getValue("id")));
			try { 
				tmp_.setLevel(Integer.parseInt(attributes.getValue("level")));
			} catch (ToodledoApiException e) {
				e.printStackTrace();
			} 
			tmp_.setContributes(Integer.parseInt(attributes.getValue("contributes")));
			int tmpBool = Integer.parseInt(attributes.getValue("archived"));
			if (tmpBool == 1)
				tmp_.setArchive(true);
			else 
				tmp_.setArchive(false);
		} 
	} 
	 
	public void characters(char[] ch, int start, int length) throws SAXException {