def strip_namespace(tag):
    """
    Remove the namespace from a tag if it's present

    Args:
        tag (str): An XML tag

    Returns:
        str: The XML tag without a namespace prefix, or the same tag if no namespace prefix exists
    """
    if tag.startswith("{"):
        rindex = tag.find("}")
        return tag[rindex + 1 :]
    return tag