posted 23 years ago
Hi All,
I am just learning about XML, and I have a strange problem with an exercise in my book. I am trying to load an XML document with JavaScript, but after it is loaded, browser complains that RootElement is null. The filename is definitely correct and the XML file is "well-formed." I can load other XML files from other exercises using the same JavaScript just fine (just changing the filename in the load() method). Could someone please take a look at the code below, and see if they can find a problem. I am stumped! Thanks a lot!!!
The XML:
The HTML and JavaScript:
[This message has been edited by Barry Andrews (edited January 01, 2002).]