def get_deepattr(self, element, node_attrs):
        if len(element.getchildren()) > 1:
            i = 0
            for obj in element.getchildren():
                name = "%s_%d" %(element.get('name'), i)
                for attr in obj.getchildren():
                    node_attrs[name+"_"+attr.get("name")] = attr.text
                i += 1
        else:
            for obj in element.getchildren():
                name = element.get('name')
                for attr in obj.getchildren():
                    node_attrs[name+"_"+attr.get("name")] = attr.text
dataset/ETHPy150Open infincia/AEServmon/libcloud/drivers/gogrid.py/GoGridNodeDriver.get_deepattr/original