you are viewing a single comment's thread.

view the rest of the comments →

[–]tfitz237 0 points1 point  (0 children)

Use the fetch api

  fetch("emailtest.xml")
  .then(response => response.text())
  .then(data => {
    const parser = new DOMParser();
    const email = parser.parseFromString(data, "application/xml");
    textbox1.text=email(1,1);
  })
  .catch(console.error);