def get_list_keys_from_xpath(xpath):
    """
    Split an xpath by the ".".
    :param xpath: the XPath to split.
    :return: List of XPath parts.
    """
    list_keys = xpath.split('.')
    if list_keys[-1] == '':
        list_keys = list_keys[:-1]
    if list_keys[0] == '':
        list_keys = list_keys[1:]
    return list_keys
