parse a xml to js and reading it to angular