I am parsing XML in python using ElementTree
import xml.etree.ElementTree as ET tree = ET.parse('try.xml') root = tree.getroot()
I want to parse all the "xml" files in this directory. The user should specify only the directory name, and I should be able to iterate over all the files in the directory and analyze them one by one. Can anyone tell me this approach. I am using Linux.
source share