[OpenLayers-Trac] [OpenLayers] #535: IE XMLSerializer needed
OpenLayers
trac at openlayers.org
Thu Jul 12 08:01:50 EDT 2007
#535: IE XMLSerializer needed
------------------------+---------------------------------------------------
Reporter: crschmidt | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.5 Release
Component: general | Version:
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by openlayers):
Replying to [ticket:535 crschmidt]:
hope this helps: I could not parse a kml file with IE, although it works
fine in Moz. I read your comment linking this ticket. In my application, i
altered Ajax.serializeXMLToString like this:
OpenLayers.Ajax.serializeXMLToString = function(xmldom) {
var serializer = new XMLSerializer();
data = serializer.serializeToString(xmldom);
return data;
}
That merely got me the elements, but the file could not be loaded at all.
this is due to the XMLDOM.loadXM´L method's parameter in
OpenLayers.parseXMLString. I changed it to method ~.load(url) and all
works fine. Hope this helps.
Yours
--
Ticket URL: <http://trac.openlayers.org/ticket/535#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list