New to Python and Dash, so sorry if this is a simple question.
Looked online but could not find any answers.
I have a dcc.Upload object with an html.Button, where users can upload an XML file.
Then, using a callback function, I would like to parse this file and return some simple data from the XML.
In regular python I would do this with
tree = et.parse("file.xml") root = tree.getroot() ... for node in root: title = node.find("series_title").....
but this does not seem to work in Dash/HTML.
Any idea how I would go about parsing files uploaded on Dash?
I think it has something to with the ‘contents’ data created when uploading a file, but a bit lost.
Any help is appreciated, thank you!