Open josyb opened 2 years ago
I have the following code:
with open(xmlfilespec, 'r') as fdxml: print('hello?', os.getcwd(), xmlfilespec) print('hello hxml2h.py?', os.getcwd(), xmlfilespec, file=logfile) xmllines = fdxml.readlines() print(len(xmllines), xmllines[0], file=logfile) xmldict = xmltodict.parse(''.join((xmllines)), process_namespaces=False) # xmldict = xmltodict.parse(fdxml.read()) # doesn't work # xmldict = xmltodict.parse(fdxml) # doesn't work either if verbose: print('\n\n-------------------------------------------', file=logfile) print('Complete list:', file=logfile) pp.pprint(xmldict) print('-------------------------------------------', file=logfile) print('XML structure:', file=logfile) printxmlstructure(xmldict, logfile=logfile) print('-------------------------------------------\n\n', file=logfile)
The issue is that the created xmldict is incomplete with v0.13.0 while we have no issue with v0.12.0 I can send you our (large?) file; about 160KiB
xmldict
Has previously been reported in #299.
Excuse me for not opening every 'old' issue; the #299 title did give a clue
I have the following code:
The issue is that the created
xmldict
is incomplete with v0.13.0 while we have no issue with v0.12.0 I can send you our (large?) file; about 160KiB