I am facing problem for reading xml file using javascript.
It works fine in other browser but in it its throw the following error.
Microsoft JScript runtime error: 'null' is null or not an object
My code snippet is as below.
GDownloadUrl("<?php echo $cfg->webroot;?>/G-map/map_xml/<?php echo $_SESSION['xml_file_name'];?>", function(data) {
var xml = GXml.parse(data);
var markers = xml.documentElement.getElementsByTagName("marker");
for (var i = 1; i <=markers.length; i++)
{
/// Error produce here just for IE
var type=markers[i].getAttribute("type");
var name =markers[i].getAttribute("title");
var address =markers[i].getAttribute("address");
// var link= '<a href="doc_detail/doc_detail-'+ markers[i].getAttribute('id')+'.html" class="doc_url">Read More</a>';
var point = new GLatLng(parseFloat(markers[i].getAttribute("latitude")),
parseFloat(markers[i].getAttribute("longitude")));
var marker = createMarker(point, name, address, type);
map.addOverlay(marker);
}
Thanks in advance