working on move, edit mode and add remove service to context menu
[enigma2.git] / lib / python / Tools / XMLTools.py
index aaab4677f4887dcbaea4ac5f48d12ef2a4053718..05513622d839ef39dd755cfe229b326cd05cb8a9 100644 (file)
@@ -15,3 +15,11 @@ def elementsWithTag(el, tag):
                        continue
                if tag(x.tagName):
                        yield x
                        continue
                if tag(x.tagName):
                        yield x
+
+def mergeText(nodelist):
+       rc = ""
+       for node in nodelist:
+               if node.nodeType == node.TEXT_NODE:
+                       rc = rc + node.data
+       return rc
+