J
J
JaFFFar2017-10-31 14:50:45
JavaScript
JaFFFar, 2017-10-31 14:50:45

JavaScript: how to read/output the content of an xml file from a url?

How can JavaScript read/render the contents of an xml file from a URL. I'm using the Chrome browser, if that's important.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2017-10-31
@Kozack

fetch('http://file.xml').then(console.log)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question