Hi,
this is more or less a known issue. To avoid it, try the following:
var data = req.responseXML.documentElement ?
req.responseXML :
req.responseText;
var caps = new OpenLayers.Format.WMSCapabilities().read(data)
Regards,
Andreas.
Gabriel Nolasco wrote:
> Hi,
>
> I am getting an error message when trying to parse some xml capabilities docs
> in IE8.
> The error message is - null is null or not an object – and happens in
> WMSCapabilities.js line 60 char 3.
> I have found that the data object exists but IE can't get the documentElement
> (data.documentElement returns null).
> Here are two examples of xml docs that throw an error:
>
> [1]
> http://inspire.cop.gva.es/mapserver/wms?service=wms&request=getCapabilities
> [2]
> http://mapas.igeo.pt/wms/caop/continente?service=wms&request=getCapabilities
>
> I would like to know why this happens only with some xml docs and only with
> IE.
> Has anyone experienced this issue?
>
> Thanks in advance,
> Gabriel Nolasco
>
>
>
> ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users