[OpenLayers-Users] gml parser problem with IE

Walter Lorenzetti lorenzetti at faunalia.it
Fri Feb 15 08:49:29 EST 2008


Hi list,

I've a problem with parser of a gml file with IE
with gml file attached

with firefox work fine and I can parser It

function parseData(req) {
          g =  new OpenLayers.Format.GML();
          html = ""
          features = g.read(req.responseText);
          for(var feat in features) {
            html += "Feature: Geometry: "+ features[feat].geometry+",";
                html += "<ul>";
            for (var j in features[feat].attributes) {
                html += "<li>"+j+":"+features[feat].attributes[j]+"</li>";
            }
                html += "</ul>"
          }
          document.body.innerHTML = html;
        }
        function load() {
            OpenLayers.loadURL("xml/grass.xml", "", null, parseData);
        }  

I think is a opnelayers bug because the script stop on features = 
g.read(req.responseText);
some user had similar problem?
I hope can I solve it for me is very important!

Thanks in advance

W

-- 
Please no  .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti at faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931  Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: grass.xml
Type: text/xml
Size: 103204 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080215/1c999aa8/grass.xml


More information about the Users mailing list