}
} else if ("date".equals(elementType)) {
SimpleDateFormat format = new SimpleDateFormat(DATEFORMAT);
try {
Date date = format.parse(charValue);
currentNode.setDate(elementName, date);
} catch (ParseException e) {
currentNode.setString(elementName, charValue);
}