web/ldt/utils/xml.py
author ymh <ymh.work@gmail.com>
Thu, 10 Jun 2010 11:17:09 +0200
changeset 10 84e31387a741
parent 0 ecdfc63274bf
permissions -rw-r--r--
correct serialization

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