def convert_to_valid_xml_name(name):
    name = re.sub(XML_CLEANSE_PATTERN1, XML_CLEANSE_REPL1, name)
    return re.sub(XML_CLEANSE_PATTERN2, XML_CLEANSE_REPL2, name)
Converts a string to a valid xml element name.
dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/convert_to_valid_xml_name