src/ldt/ldt/utils/xml.py
author ymh <ymh.work@gmail.com>
Tue, 06 Nov 2012 14:40:44 +0100
changeset 896 72f7ec8a8789
parent 13 97ab7b3191cf
permissions -rw-r--r--
add correction for platform instance which are protected by a basic http login/password.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
def getText(anode):
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
	nodelist = anode.childNodes
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
	rc = ""
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
	for node in nodelist:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
		if node.nodeType == node.TEXT_NODE:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
			rc = rc + node.data
13
97ab7b3191cf add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     7
	return rc