dom xml to map