web/ldt/utils/xml.py
author ymh <ymh.work@gmail.com>
Wed, 27 Oct 2010 23:42:15 +0200
changeset 14 92e9ec3663e0
parent 1 eb9188f2ee4f
permissions -rw-r--r--
correct empty content correction

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