def int_element(element, name, default=<NUM_LIT:0>):
element_value = element.find(name)<EOL>if element_value is not None:<EOL><INDENT>try:<EOL><INDENT>return int(element_value.text)<EOL><DEDENT>except (TypeError, ValueError):<EOL><INDENT>return default<EOL><DEDENT><DEDENT>return default<EOL>
Returns the int value of an element, or a default if it's not defined
:param element: The XML Element object
:type  element: etree._Element

:param name: The name of the element to evaluate
:type  name: str

:param default: The default value to return if the element is not defined
:type  default: int

:rtype: int