Revision 4de03d63 ncclient/transport/hello.py

b/ncclient/transport/hello.py
45 45
                    [{'tag': 'capability', 'text': uri} for uri in capabilities]
46 46
                }]
47 47
            }
48
        return content.to_xml(spec)
48
        return content.dtree2xml(spec)
49 49
    
50 50
    @staticmethod
51 51
    def parse(raw):
......
53 53
        sid, capabilities = 0, []
54 54
        root = content.xml2ele(raw)
55 55
        for child in root.getchildren():
56
            tag = content.unqualify(child['tag'])
56
            tag = content.unqualify(child.tag)
57 57
            if tag == 'session-id':
58 58
                sid = child.text
59 59
            elif tag == 'capabilities':

Also available in: Unified diff