web/ldt/utils/xml.py
author veltr
Fri, 04 Oct 2013 11:26:40 +0200
changeset 101 05c1161fa501
parent 0 ecdfc63274bf
permissions -rw-r--r--
Added "aggressive filtering"

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