I've searched far and wide for ways to load an XML document using Mozilla, I've come up with two:
- XMLHttpRequest, connect to server & using the responseXML to load XML Document
- createDocument and using a load call to load an XML Document.
Below, I've got code below for the both of 'em in the same JS script, separated by a simple prompt asking for a "YES" to make it work, and "NO" (or anything else) to make it not work...
- YES calls the XMLHttpRequest code,
- NO calls that createDocument code.
Can someone tell me what I'm doing wrong with the createDocument code? Instead of appending the XMLDocument to the example div, as expected, it instead does nothing.... I'm not even getting any errors.