'Loads the proper filter by the type attribute of elem'

@classmethod
def from_element(cls, d_option, elem):

    type = elem.get('type', None)
    assert (type is not None), "Required    'type'    attribute    missing    from    filter"
    return filter_types[type.strip()](d_option, elem)
