User:Pluke/xml


 * 1) Name:        module1
 * 2) Purpose:
 * 3) Author:      pluke
 * 4) Created:     03/03/2013
 * 5) Copyright:   (c) pluke 2013
 * 6) Licence:
 * 1) Created:     03/03/2013
 * 2) Copyright:   (c) pluke 2013
 * 3) Licence:


 * 1) tkinter drop downs
 * 2) http://effbot.org/tkinterbook/optionmenu.htm


 * 1) instructions on how to use xml functions
 * 2) http://docs.python.org/2/library/xml.etree.elementtree.html#building-xml-documents

def main: pass

if __name__ == '__main__': main

import xml.etree.ElementTree as ET tree = ET.parse('c:/tmp/test.xml') root = tree.getroot
 * 1) print root.tag

for child in root: print child.find('length').text print child.get('value')
 * 1) print out each word


 * 1) 
 * 2) 		 3
 * 3) 		 11
 * 4) 		 2
 * 5) 		 0
 * 1) 		 11
 * 2) 		 2
 * 3) 		 0
 * 1) 		 2
 * 2) 		 0
 * 1) 		 0
 * 1) 		 0
 * 1) 		 0