From 13b97d61d24a029aa11bbb4473d07998d5fb7a4e Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 26 Nov 2014 07:13:50 +0400 Subject: [PATCH] support des noeuds de type texte --- lib/pyulib/src/uapps/uxpath.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pyulib/src/uapps/uxpath.py b/lib/pyulib/src/uapps/uxpath.py index e7542da..22deced 100755 --- a/lib/pyulib/src/uapps/uxpath.py +++ b/lib/pyulib/src/uapps/uxpath.py @@ -34,6 +34,8 @@ def dumprs(rs): for r in rs: dumprs(r) elif isinstance(rs, minidom.Element): print rs.toxml("utf-8") + elif isinstance(rs, minidom.Text): + print rs.data.encode("utf-8") elif isinstance(rs, minidom.Attr): print rs.value.encode("utf-8") else: