I am trying to replace some values in XML using ElementsTree without xmlns in Python 2.7.5 but it always returns None, no matter what.
Here is my truncated.xml:
When you build the tree the context is already definition. Try taking definition/ off the front of your xpath...
definition
definition/
tree.find('scm/userRemoteConfigs/hudson.plugins.git.UserRemoteConfig/url')