I'm getting an error with my code: 'AttributeError:Document instance has no attribute 'find'
Can I use the find function with an xml doc? Eventually I want to find a word and replace it in the xml doc.
from xml.dom.minidom import parse
config_file = parse('/My/File/path/config.xml')
def find_word(p):
index = p.find('Word')
return index
print find_word(config_file)