parse xml to map