I have thousands of these app name lines in an xml file:
<app name="app-sq-461-author-core-0">
I want to do the following:
- check through all lines that 'app name' exists
- if so, see if the value matches "test"
- If so, replace the value with "delete me"
Currently, I have:
bare = importedxml.find('app name')
testvalue = bare.split("=")[1]
if testvalue = "test" in importedxml:
testvalue = "delete me"
What is the best way to do this? I'm encountering many problems.