Simple JavaScript functions to get an XML file whether it is stored locally or remotely.
To run on localhost with local XML file on Chrome have to run with the following command:
Mac: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files or open -a Google\ Chrome --args --allow-file-access-from-files Linux: google-chrome --allow-file-access-from-files Windows: path to your chrome installation\chrome.exe --allow-file-access-from-files
Check flags here: chrome://version/
WARNING: Restart Chrome without this flag before accessing the web as this flag introduces security issues. blog.chromium.org/2008/12/security-in-depth-local-web-pages.html