from xml.dom import minidom
dict[1] = "country"
xmldoc = minidom.parse('TestStep.xml')
itemlist = xmldoc.getElementsByTagName('TestStepBody')
print len(itemlist)
print itemlist[0].attributes['Author'].value
itemlist[0].setAttribute("Author",dict[1]);
for s in itemlist :
print s.attributes['Author'].value
dict[1] value will be changing dynamically, So i need to dynamically change the attribute value of the Author in python. I this possible? if so Can any one help me in this.