web/ldt/utils/xml.py
author ymh <ymh.work@gmail.com>
Fri, 11 Jun 2010 00:17:30 +0200
changeset 27 f81da251d0aa
parent 0 ecdfc63274bf
permissions -rw-r--r--
improve serialization and add partials

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