I have stored about 150+ XML files in one folder. I want to open and read those XML files from that folder (about 150+ XML files); after that, I do the next analysis. What do I need to change in the below code to open/read the multiple XML files from that folder?
from bs4 import BeautifulSoup
import lxml
import pandas as pd
infile = open("F:\\itprocess\\xmltest.xml","r")
contents = infile.read()