def get_attribute(self, node, attr):
        try:
            attribute = node.attributes.get(attr)
            if attribute is not None:
                return attribute.value
        except __HOLE__:
            pass
        return None
dataset/ETHPy150Open VisTrails/VisTrails/contrib/cdat/scripts/parse_cdat_xml_file.py/XMLNode.get_attribute