I want to read different XML files to do the parsing later. My code is below, but I got following exception:
IsADirectoryError: [Errno 21] Is a directory: '.ipynb_checkpoints'
This is my code:
from os import listdir
for file in listdir():
    print(file)
    xmlTree = parse(file)
    elemList = []
How can I fix this error?