I am using Django framework and python scripts for validating XML files.
I usually parse the XML file, which is already present in the defined location, using the below code.
import xml.etree.ElementTree as ET
tree = ET.parse('config.xml')
However, now I want to add the file dynamically from the front end browse file option and place it in the above ET.parse('file.xml') location. What is the best way to achieve this?