In reference to my question here, I have managed to develop a structure of lists in below given format:
(hours,color,type,text)
[('1', '2', 'a', '564'),
('1', '3', 'b', '570'),
('1', '4', 'c', '570'),
('5', '6', 'a', '560'),
('5', '7', 'b', '570'),
('5', '8', 'c', '580'),
('9', '10', 'a', '560'),
('9', '11', 'b', '570'),
('9', '12', 'c', '580')]
I already referred here but not able to get rid of all 1's, 5's and 9's.
What I want Now for comparing both files as given in link above, I want to make a dictionary structure like mentioned below and then compare dictionary's content individually.
{'1':[2,3,4,a,b,c,564,570,570],
'5':[6,7,8,a,b,c,560,570,580]
'9':[10,11,12,a,b,c,560,570,580]}
Since the data is huge in both files, I cannot compare simply line wise using loop. So I decided making a specific dictionary for each 'hour' attribute of 'location' element which includes all 'feature'. I am trying to think from long time but not able to start off. Can you help?
To prevent complexity in viewing I did not pasted original xml code from link above.