d2  = {}
for k,v in your_dict.iteritems():
  d2[k.replace(' ','_')]=v

#then convert d2 to xml

Reply via email to