def event_config_to_eventTypeSchema(event) :
    """Generate eventTypeSchema for ExtensionEventTypeInfo from event configuration"""
    
    xml = "<EventType>"
    xml += "<eventTypeID>%s</eventTypeID>" % event['event_id']
    xml += "<description>%s</description>" % event['description']
    args = event.get('arguments', [])
    arg_xml = ''
    for arg in args :
        arg_xml += "<argument><name>%s</name><type>%s</type></argument>" % (arg['name'], arg['type'])
    
    if arg_xml :
        xml += "<arguments>%s</arguments>" % arg_xml
   
    xml += "</EventType>"
    
    return xml