def make_xml_name(attr_name):
    """ Convert an attribute name to its XML equivalent by replacing
    all '_' with '-'. CamelCase names are retained as such.

    :param str attr_name: Name of the attribute

    :returns: Attribute name in XML format.
    """
    return attr_name.replace('_', '-')