def get_config_xml_tail(tail_xpath):
    """Get xml tail string when config.
    Args:
        tail_xpath: The string of xpath_key.
    Returns:
        xml_tail_str: The xml tail str.
    """
    xml_tail_str = ""
    tail_xpath_list = tail_xpath.split("/")[1:]
    for item in reversed(tail_xpath_list):
        xml_tail_str = xml_tail_str + "</" + item + ">"
    xml_tail_str += "</config>"
    return xml_tail_str