def appendXmlTextNode(tag_name, text, parent):
 el = xmlTextNode(tag_name, text)
 parent.append(el)
 return el

def appendXmlTextNode ( tag_name , text , parent ) : el = xmlTextNode ( tag_name , text ) parent . append ( el ) return el
creates a new <tag_name> node and sets its content to text .