web/ldt/utils/xml.py
author ymh <ymh.work@gmail.com>
Thu, 10 Jun 2010 19:01:46 +0200
changeset 18 d992dc4ad83f
parent 0 ecdfc63274bf
permissions -rw-r--r--
Merge with d61862b2cfe35bcc16537971186cc82eac60852a

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