I'm trying to parse this little XML document here: http://pastebin.com/m5f0e4300 with this code: function(response) { console.log(response.responseText) console.log(response.responseXML) try { console.log("Try and find nafn") console.log($j(response.responseXML).find("nafn").text()) console.log($j(response.responseXML).find("LM:nafn").text()) } catch(e) { console.log("WMS GetFeatureInfo XML Error") } } (JS code: http://pastebin.com/m5efc6214 ) And for some reason I get the following from the Firebug log:
[The xml text] Document [A Document object of the XML] Try and find nafn [Empty line] [Empty line] Instead of those Empty lines I would like to get "Kópavogur". Anybody have any idea what I'm doing wrong? Kind regards from Iceland, gzur