[OpenLayers-Dev] WMSCapabilities error in IE

Matt Priour mpriour at kestrelcomputer.com
Sun Sep 20 21:14:47 EDT 2009


This entry looks suspiscious. IE in general has a VERY strict XML parser. 
Things that parse just fine in FF, Safari & Chrome will completely fail in 
IE sometimes.
The < & >symbols  might be interperted as a tag and have confused the 
parser.

  <Layer queryable="1" opaque="0" cascaded="0" noSubsets="0">
  <Name>hidro_lin_10k</Name>
  <Title>Líneas</Title>
  <Abstract>La hidrografía lineal incluye: acequia o canal <2m, acueducto, 
canal >2m, cauce de río, delimitación de embalses y lagunas, nivel medio del 
mar, perímetro de isla fluvial, perímetro de isla marítima, presas, puerto y 
muelle, río no permanente por eje y río por margen a escala 
1:10.000</Abstract>

Just my best guess

Matt Priour

>
> Message: 1
> Date: Sat, 19 Sep 2009 08:25:14 -0700 (PDT)
> From: Gabriel Nolasco <nolasco_gabriel at yahoo.com.br>
> Subject: [OpenLayers-Dev] WMSCapabilities error in IE
> To: OpenLayers Users <users at openlayers.org>, dev at openlayers.org
> Message-ID: <667031.85286.qm at web37102.mail.mud.yahoo.com>
> Content-Type: text/plain; charset=utf-8
>
> 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
> 




More information about the Dev mailing list