def METHOD_NAME(results):
    from xml.dom.minidom import Document
    doc = Document()
    mm = doc.createElement('MaltegoMessage')
    doc.appendChild(mm)
    mtrm = doc.createElement('MaltegoTransformResponseMessage')
    mm.appendChild(mtrm)
    entities = doc.createElement('Entities')
    mtrm.appendChild(entities)
    for result in results:
        entity = doc.createElement('Entity')
        entity.setAttribute('Type', 'IPAddress')
        value = doc.createElement('Value')
        value_node = doc.createTextNode(result)
        value.appendChild(value_node)
        entity.appendChild(value)
        entities.appendChild(entity)
    output = doc.toxml()
    print output[output.index("<Maltego"):] # Hack to rip out <? xml ?> so that maltego can function