Talk:Harvard-Oxford Atlas

From Brede Wiki
Jump to: navigation, search

[edit] Python

from BeautifulSoup import BeautifulStoneSoup as BSS

soup = BSS(open('HarvardOxford-Cortical.xml'))
print("\n|-\n| ".join([ "%s | [[%s]] " % (l['index'], l.string) for l in soup.findAll('label') ]))
Personal tools