writeValue(convertedValue, null, isAttribute);
}
else if(value.getClass() == String.class){
//if schemaType is set and it's a numeric or boolean type don't treat as a string
if(schemaType != null && isNumericOrBooleanType(schemaType)){
ConversionManager conversionManager = getConversionManager();
Class<?> theClass = conversionManager.javaType(schemaType);
Object convertedValue = conversionManager.convertObject(value, theClass, schemaType);
writeValue(convertedValue, schemaType, isAttribute);
}else if(isCDATA){
cdata((String)value);
}else{
writeValue((String)value, null, isAttribute);