parse xml to dict