Skip to content

Instantly share code, notes, and snippets.

@dizzi
Created April 15, 2011 11:19
Show Gist options
  • Save dizzi/921543 to your computer and use it in GitHub Desktop.
Save dizzi/921543 to your computer and use it in GitHub Desktop.
if __name__ == '__main__':
dataList = parseFile("D:\\workspace\\Hydro\\data\\20100817_0852_stamdata.xml")
for t in dataList:
print t['TODAY']
terms = t['TERMS']
for term in terms:
print term['TERMINDATO']
print "%s-%s=%s"%(term['RENTEKUPONG'], t['MARGIN'], float(term['RENTEKUPONG'])-float(t['MARGIN']))
if t['TODAY']>term['TERMINDATO']:
continue
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment