#NEWLINE# def read_string_table( xml_source ) : #NEWLINE# #INDENT# 'Read in all shared strings in the table' #NEWLINE# table = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# xmlns = 'http://schemas.openxmlformats.org/spreadsheetml/2006/main' #NEWLINE# root = fromstring ( text = xml_source ) #NEWLINE# string_index_nodes = root . findall ( QName ( string_index_nodes , 'si' ) . text ) #NEWLINE# for ( index , string_index_node ) in enumerate ( string_index_nodes ) : #NEWLINE# #INDENT# table [ index ] = get_string ( xmlns , string_index_node ) #NEWLINE# #UNINDENT# return table