I’ve been trying to populate fields on a form, when loaded on the Browser, from an XML file. I’ve written this code in the onload event of the form, but can’t get it to work. (My XML and Javascript knowledge is in it’s infancy.)
The form has 3 fields on it, all editable and available to web, named ‘to’, ‘from’ and ‘body’.
My test XML file I’m trying to load is in the following format: