web/ldt/utils/xml.py
author ymh <ymh.work@gmail.com>
Tue, 26 Oct 2010 16:25:19 +0200
changeset 7 2b0de7414b92
parent 1 eb9188f2ee4f
permissions -rw-r--r--
correct write content error

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