update the attrib using dict-->update() function

This commit is contained in:
Syed Hassan Raza
2015-04-30 14:21:01 +05:00
committed by Adam Palay
parent afec81b662
commit e7aeb92182
2 changed files with 18 additions and 1 deletions

View File

@@ -446,7 +446,7 @@ class XmlParserMixin(object):
node.tag = xml_object.tag
node.text = xml_object.text
node.tail = xml_object.tail
node.attrib = xml_object.attrib
node.attrib.update(xml_object.attrib)
node.extend(xml_object)
node.set('url_name', self.url_name)