def METHOD_NAME(self, doc, name, content):
    """
    Creates a simple XML Element node in a document
    with tag name "name" and text content "content",
    as in <name>content</name> and returns the element.
    """
    node = doc.createElement(name)
    node.appendChild(doc.createTextNode(content))
    return node