def create_el(name, text=None, attrib=None):
if attrib is None:<EOL><INDENT>attrib = {}<EOL><DEDENT>el = ET.Element(name, attrib)<EOL>if text is not None:<EOL><INDENT>el.text = text<EOL><DEDENT>return el<EOL>
Create element with given attributes and set element.text property to given
    text value (if text is not None)

    :param name: element name
    :type name: str
    :param text: text node value
    :type text: str
    :param attrib: attributes
    :type attrib: dict
    :returns: xml element
    :rtype: Element