parse xml to dictionaries