Closed napulen closed 3 years ago
Given how complex MEI files can get, it is not robust to parse them line by line.
The use of an xml parser is much better for this purpose.
I recommend looking into the official python tool for this: https://docs.python.org/3/library/xml.etree.elementtree.html
Either that or the defusedxml alternative. I don't have security concerns for this code (the main motivation for defusedxml), given that we plan to use it with in-house xml files only, so I think the official one is a better choice.
defusedxml
Given the issues with libmei we'll go with ET for now!
Go for it
Issue can be closed per the latest push into master.
Given how complex MEI files can get, it is not robust to parse them line by line.
The use of an xml parser is much better for this purpose.
I recommend looking into the official python tool for this: https://docs.python.org/3/library/xml.etree.elementtree.html
Either that or the
defusedxml
alternative. I don't have security concerns for this code (the main motivation fordefusedxml
), given that we plan to use it with in-house xml files only, so I think the official one is a better choice.