return new BigDecimal(valueString);
} else if (Date.class.isAssignableFrom(field.getType())) {
try {
return new SimpleDateFormat(annotation.dateFormat()).parse(valueString);
} catch (ParseException e) {
throw new XMLParsingException("Encountered date parsing exception when parsing " + field.toString()
+ " with format " + field.getAnnotation(XMLField.class).dateFormat() + " for value "
+ valueString, e);
}
} else {
return valueString;