This commit is contained in:
Jephte CLAIN 2014-11-26 07:14:43 +04:00
parent 13b97d61d2
commit bf40cb8d33
1 changed files with 2 additions and 2 deletions

View File

@ -34,10 +34,10 @@ 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")
elif isinstance(rs, minidom.Text):
print rs.data.encode("utf-8")
else:
die("type non géré: %s (%s)" % (str(rs), tr))