def __createSimpleNodeWithText(doc, nodeName, text):
    """
    Return a node element with text in it. For example, if the nodeName is "color" and the text is "blue", the returned element is a represenatation of the following xml snippet:
    <color>blue</color>
    """
    newNode = doc.createElement(nodeName)
    textNode = doc.createTextNode(text)
    newNode.appendChild(textNode)
    return newNode