def METHOD_NAME(constraint_definition, METHOD_NAME):
    for idx,(constraintid, syntax, constraint, description, defaultvalue, value) in enumerate(METHOD_NAME):
        constraint_id = etree.SubElement(constraint_definition, 'constraint', id = constraintid)
        constraint_id_descriptor = etree.SubElement(constraint_id, 'descriptor')
        constraint_id_descriptor_syntax = etree.SubElement(constraint_id_descriptor, 'Syntax').text = syntax
        if constraint != 'NULL':
            constraint_id_descriptor_syntax = etree.SubElement(constraint_id_descriptor, 'Constraint').text = constraint
        constraint_id_descriptor_description = etree.SubElement(constraint_id_descriptor, 'Description').text = description
        if defaultvalue != 'NULL':
            constraint_id_descriptor_defaultvalue = etree.SubElement(constraint_id_descriptor, 'DefaultValue').text = defaultvalue
        if value != 'NULL':
            constraint_value = etree.SubElement(constraint_id, 'value').text = value
        else:
            constraint_value = etree.SubElement(constraint_id, 'value')