def xsd_append_element(parent_el, name, prop_type_name, min_occurs,
                       max_occurs):
    element_el = append_child(parent_el, XSD_ELEMENT_NAME)
    element_el.attributes[NAME_ATTR_NAME] = name
    type_name = PROPERTY_TYPE_TO_XSD_TYPE.get(prop_type_name, None)
    if type_name:
        element_el.attributes[TYPE_ATTR_NAME] = type_name
    if min_occurs is not None:
        element_el.attributes[XSD_ATTR_MINOCCURS] = min_occurs
    if max_occurs is not None:
        element_el.attributes[XSD_ATTR_MAXOCCURS] = max_occurs
    return element_el
Returns an XML Schema element with the given attributes appended to the
dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/xsd_append_element