web/ldt_utils/utils/xml.py
author ymh <ymh.work@gmail.com>
Tue, 08 Jun 2010 15:31:42 +0200
changeset 4 7c994c98d1df
parent 0 web/ldt/utils/xml.py@ecdfc63274bf
permissions -rw-r--r--
change ldt.ldt to ldt.ldt_utils

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