I’m new to XML and I want to learn how to parse XML with jQuery.
I’ve followed this example http://www.vagrantradio.com/2009/10/how-to-parse-xml-using-jquery-and-ajax.html, and I even downloaded the demo, but it didn’t work on my computer.
However, when I uploaded the demo to a remote server, everything worked fine.
So my question is, is there a way to parse a XML with jQuery on a local computer?
I’m asking this because it’s a lot simpler for me to practice XML without constantly uploading files to remote sever.
As for the local testing, I’ve tried using the WAMP server but with no luck, so is there a way to text XML parsing with jQuery on my local computer without uploading to the remote server?
Depending on the browser you use, you can run into some security features that prevent you from using File API/XHR on the file:// protocol (I had the problem with Chrome).
How are you loading the xml file?
A simple solution would be to use a simple http server, with python for exemple: