web/ldt/utils/xml.py
author ymh <ymh.work@gmail.com>
Tue, 26 Oct 2010 13:18:58 +0200
changeset 3 3b54cc07c7f7
parent 1 eb9188f2ee4f
permissions -rw-r--r--
commit sync pattern

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