From 7aa8ddb89a0df17f068983a24dbd3a03fda15ec3 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 13 Jan 2010 02:05:50 +0000 Subject: [PATCH] adding this condition back to parseString logic (it is needed to correctly handle xml child nodes --- sfa/util/rspec.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sfa/util/rspec.py b/sfa/util/rspec.py index 28483312..26ba6735 100644 --- a/sfa/util/rspec.py +++ b/sfa/util/rspec.py @@ -148,6 +148,9 @@ class RSpec: # add if data is not empty if child.data.strip(): node[elementName][childName].append(nextchild.data) + elif child.hasChildNodes() and isinstance(child.childNodes[0], minidom.Text): + for nextchild in child.childNodes: + node[elementName][childName].append(nextchild.data) else: childdict = self.toDict(child) for value in childdict.values(): -- 2.47.0