Simple update of a value in element in an xml file

<poll>
  <count>100</count>
</poll>

from xml.dom.minidom import parse
dom = parse('t.xml')
list = dom.getElementsByTagName('count')
# list is a NodeListObject with item and length
e = list[0] # e is an NodeListObject