complete functional to analyze simpleType elements