Revision e0fa2626 ncclient/xml_.py

b/ncclient/xml_.py
94 94
                raise XMLError("Element [%s] does not have required attributes" % ele.tag)
95 95
    return ele
96 96

  
97
new_ele = lambda tag, attrs={}, **extra: ET.Element(tag, attrs, **extra)
97
new_ele = lambda tag, attrs={}, **extra: ET.Element(qualify(tag), attrs, **extra)
98 98

  
99
sub_ele = lambda parent, tag, attrs={}, **extra: ET.SubElement(parent, tag, attrs, **extra)
99
sub_ele = lambda parent, tag, attrs={}, **extra: ET.SubElement(parent, qualify(tag), attrs, **extra)

Also available in: Unified diff