code: private Object parseAttributeValue(XAttribute xAttribute) {
  		String attributeString = xAttribute.toString();
  
  		// TODO better solution?
  
  		// All numeric values as double
  		try {
  			double a = Double.parseDouble(attributeString);
  			return a;
  		} catch (NumberFormatException e) {
  			// Ignore
  		}
  		// Boolean
  		if (attributeString.trim().toLowerCase().equals("true"))
  			return true;
  		if (attributeString.trim().toLowerCase().equals("false"))
  			return false;
  		// String
  		return attributeString;
  	}
docs: Tries to parse the value of a {@link XAttribute} to a numeric, boolean, or string value.