web/ldt/utils/xml.py
author samuel huron <admin@cybunk.com>
Thu, 17 Jun 2010 11:15:05 +0200
changeset 50 1ecfe4720da7
parent 0 ecdfc63274bf
permissions -rw-r--r--
Version + Clean pour intégration: - suppr de pleins de repertoire et fichiers inutiles - suppr de l'alert au la création du player.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
def getText(anode):
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
	nodelist = anode.childNodes
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
	rc = ""
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
	for node in nodelist:
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
		if node.nodeType == node.TEXT_NODE:
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
			rc = rc + node.data
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
	return rc