How do you add an .xml file to a parser


<?xml version="1.0 encoding="UTF-8" standalone="yes"> <0> John Doe <1> Jane Doe


function Button1_Click(){
const parser = new DOMParser();
const xmlString = “Beware of the missing closing tag”;
const doc = parser.parseFromString("/emailtest.xml", “application/xml”);
const errorNode = doc.querySelector(‘parsererror’);
if (errorNode) {
// parsing failed
} else {
// parsing succeeded
Textbox1.Text = doc(1,1);



This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.