summaryrefslogtreecommitdiff
path: root/src/vim-latex/doc/db2vim/domutils.py
diff options
context:
space:
mode:
authorDavid Kaufmann <astra@fsinf.at>2011-11-15 16:48:21 +0100
committerDavid Kaufmann <astra@fsinf.at>2011-11-15 16:48:21 +0100
commit5cffdb1f6922496d1bb3b3aae4152df64e0bc87f (patch)
tree7df4ee4d1a8209ed01d5aa4a1ab8d6fbba902893 /src/vim-latex/doc/db2vim/domutils.py
parent890bcf73e280fcf2d518ea6396de9afc0141e1df (diff)
downloadconfig-5cffdb1f6922496d1bb3b3aae4152df64e0bc87f.tar.gz
submodule stuff
Diffstat (limited to 'src/vim-latex/doc/db2vim/domutils.py')
-rw-r--r--src/vim-latex/doc/db2vim/domutils.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/vim-latex/doc/db2vim/domutils.py b/src/vim-latex/doc/db2vim/domutils.py
deleted file mode 100644
index 83351ff..0000000
--- a/src/vim-latex/doc/db2vim/domutils.py
+++ /dev/null
@@ -1,25 +0,0 @@
-def GetTextFromElementNode(element, childNamePattern):
- children = element.getElementsByTagName(childNamePattern)
- texts = []
- for child in children:
- texts.append(GetText(child.childNodes))
-
- return texts
-
-def GetText(nodelist):
- rc = ""
- for node in nodelist:
- if node.nodeType == node.TEXT_NODE:
- rc = rc + node.data
- return rc
-
-def GetTextFromElement(element):
- text = ""
- child = element.firstChild
- while not child.nextSibling is None:
- child = child.nextSibling
- print child
- if child.nodeType == child.TEXT_NODE:
- text = text + child.data
-
- return text