web/ldt_utils/utils/xml.py
changeset 4 7c994c98d1df
parent 0 ecdfc63274bf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/ldt_utils/utils/xml.py	Tue Jun 08 15:31:42 2010 +0200
@@ -0,0 +1,7 @@
+def getText(anode):
+	nodelist = anode.childNodes
+	rc = ""
+	for node in nodelist:
+		if node.nodeType == node.TEXT_NODE:
+			rc = rc + node.data
+	return rc
\ No newline at end of file