web/ldt/utils/xml.py
author ymh <ymh.work@gmail.com>
Tue, 26 Oct 2010 14:29:57 +0200
changeset 5 5044dbe8745f
parent 1 eb9188f2ee4f
permissions -rw-r--r--
correct problem when creating content

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