Feature attr

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