def METHOD_NAME(url, state, name):
    check = ET.Element('check')
    if url:
        se = ET.SubElement(check, 'url')
        se.text = url
    se = ET.SubElement(check, 'state')
    se.text = state
    se = ET.SubElement(check, 'name')
    se.text = name
    return ET.tostring(check)