I am trying to load XML document to traverse, can someone please explain why does the below line does not work and a http request has to be made to load the XML document though the XML is stored in the same folder as the HTML.
var xmlDoc = loadXMLDoc("filename.xml")
Thanks in advance.