Closed esturdivant-usgs closed 5 years ago
find_and_replace_from_dict() worked in testing. update_xml() did not work in testing. When I ran it line by line, it did update the XML.
find_and_replace_from_dict does not update the tree. The tree is the last thing to get saved as the XML file.
Moved the call to find_and_replace_from_dict() to the very end of update_xml().
The HTML versions of the XMLs viewed from SB still have dr_doi placeholders. The find_and_replace dictionary should have been created, but somewhere along the line it didn't work.
Here are the