(name)
return False
Determine if given name is an invalid XML identifier:
    - Blank
    - Contains special characters
    - Start with "xml"
    - Start with a number
Determine if given name is an invalid XML identifier:
    - Blank
    - Contains special characters
    - Start with "xml"
    - Start with a number
Determine if given name is an invalid XML identifier : - Blank - Contains special characters - Start with xml - Start with a number
def is_identifier_invalid(name):
    """
    Determine if given name is an invalid XML identifier:
    - Blank
    - Contains special characters
    - Start with "xml"
    - Start with a number
    """
    if (not bool(name) or name.startswith('xml')):
        return True

    try:
        ElementTree.fromstring('<{} />'.format(name).encode('utf-8'))
    except ElementTree.ParseError:
        return True

    return False
def is_identifier_invalid ( name ) : if ( not bool ( name ) or name . startswith ( 'xml' ) ) : return True try : ElementTree . fromstring ( '<{} />' . format ( name ) . encode ( 'utf-8' ) ) except ElementTree . ParseError : return True return False