add attr to set min and max value from xml
add attr to set default value from xml