def get_xml(file):
    with open(file, 'r') as f:
        try:
            dom = xml.dom.minidom.parse(f)
        except xml.parsers.expat.ExpatError:
            return None
    return dom
Generate test code for the given filenames.
dataset/ETHPy150Open nasa-gibs/onearth/src/test/oe_test_utils.py/get_xml--crossover with--dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/generation.py/generate_code