View Full Version : fetch xml using ajax
03-08-2011, 10:11 AM
I am sending a getCapabilities- request "http://atlas.gc.ca/cgi-bin/atlaswms_en?VERSION=1.1.1&REQUEST=Getcapabilities&SERVICE=wms" that results in a xml-file, I want to parse this file to get the layers in a rollist.
The problem is that i don't know hot to get the requested xml-file, I don't know how or where in the code to put the url. I am using httpXMLrequest but i do not get it to work..
please help me!
03-08-2011, 03:59 PM
03-09-2011, 04:49 PM
03-09-2011, 05:31 PM
I don't know where to put the URL and which url to use. supposed to mean? How would I know which URL you need to use for whatever you are doing? What's wrong with the one in your original post?
03-09-2011, 09:22 PM
I ment the Url in the first post, and if I should use the whole file, never mind, I also saw I was a little bit unclear there. Thanks for your help and I will try to solve it with your tips.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.