read an xml response in javascript fetch code example Example: xml http request fetch fetch('my/url/').then(respone()=>{ console.log(response); }