<HTML dir=ltr><HEAD><TITLE>Re: [OpenLayers-Users] Openlayers and Mapnik - Problems generatingmaps in OL with XML (Mapnik)</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText37996 dir=ltr>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>Hi all,</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana size=2>I've been struggling with de WMSCapabilities (as defined here </FONT><A href="https://webmail.consulting-fujitsu.com/exchweb/bin/redir.asp?URL=http://trac.openlayers.org/ticket/1176" target=_blank><FONT face=Verdana size=2>http://trac.openlayers.org/ticket/1176</FONT></A><FONT face=Verdana color=#000000 size=2>).</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>Works fine with FF, but not with IE(6).</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>
<DIV dir=ltr><FONT face=Verdana size=2>The "capFormat.read" seems to be the problem (Object required).</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>Maybe related to XML with IE ...<BR></FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>Is there a workaround ?</FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Thanks a lot</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>---</DIV></FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>function handleResult ()<BR>{<BR> if (oHttpRequest.readyState == 4) // COMPLETED<BR> {<BR> if (oHttpRequest.status == 200)<BR> {<BR> try<BR> {<BR> var xmlFormat = new OpenLayers.Format.XML();<BR> var xml = xmlFormat.read(oHttpRequest.responseText);<BR> var cap = capFormat.read(xml);</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana size=2> oTitle=cap.service.title;<BR> oLayersDispn=cap.capability.layers;<BR> }<BR> catch (err)<BR> {<BR> ...<BR> }<BR> }<BR> else<BR> ...<BR> }<BR>}</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>James</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV></DIV></BODY></HTML>