web/ldt/utils/xml.py
author samuel huron <admin@cybunk.com>
Thu, 10 Jun 2010 19:15:21 +0200
changeset 20 f8788d4ddcfd
parent 0 ecdfc63274bf
permissions -rw-r--r--
neuw version with callback

def getText(anode):
	nodelist = anode.childNodes
	rc = ""
	for node in nodelist:
		if node.nodeType == node.TEXT_NODE:
			rc = rc + node.data
	return rc