What's new in Customer Journeys?

Connect and learn more!
Displaying XML data for external sites. — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Displaying XML data for external sites.

Received Response
1
Views
1
Comments

Summary:
Displaying XML data for external sites.
Content (required):
Javascript calls XML data from an external site to store it in a variable
When you try to display that variable as a string in a particular tag, it does not work.

In what way can this work?

Can XML data be read from external sites?
Version (include the version you are using, if applicable):

Code Snippet (add any code snippets that support your topic, if applicable):
function pullMeteoHeadline() {
var url = 'http://www.data.jma.go.jp/developer/xml/feed/extra.xml';

fetch(url)
.then(response => response.text())
.then(str => new window.DOMParser().parseFromString(str, "text/xml"))

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!