def _get_all_attributes(node):
    if hasattr(node, "hasAttributes") and node.hasAttributes():
        for key in node.attributes.keys():
            yield key, node.getAttribute(key)
    for child in node.childNodes:
        for pair in _get_all_attributes(child):
            yield pair
Override init to add consumer
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/logger/xform_instance_parser.py/_get_all_attributes--crossover with--dataset/ETHPy150Open project-fondue/python-yql/yql/__init__.py/ThreeLegged.__init__