Open defron opened 9 years ago
Brian here.
Tagged for @BLuu13
After doing some research, I found there are various ways to parse xml files. At this point, I think ElementTree (https://docs.python.org/3/library/xml.etree.elementtree.html#module-xml.etree.ElementTree) would be a good choice due to compatibility and it seems like a popular lightweight standard. Here are my questions to anyone:
-Any recommendations for reading xml in context of our project? -Read an xml file incrementally or as a whole? -Are memory, speed, or vulnerabilities a concern?
ElementTree sounds fine if you think it's a good candidate, try implementing something with it as a POC
-Just use useful names for the keys so we can tell what's going on -Read just the values of the keys we're creating -memory and speed aren't too big of a deal. If there is a well-known vulnerability with ElementTree don't use it.
Features:
1)Read a config.xml file for configuration (such as location of memberdb.sqlite3)
2) Create config.xml file (blank) if it does not exist already
3) Write to config.xml file to store data