Google Map

Hi,

I have a page which is using Google Map V2.

Step 1- The page first reads the records from database.
Step 2- Create and write an xml file on physical drive.
Step 3- Finally use that xml file to mark areas in Google map.

What I want to do is to eliminate step 2 from above process, so that xml formatted data is directly pass to google map javascript.

Below is the GMap javascript code I use:

function initializeGeoMLS(mLatitude, mLongitude, mZoom) {
if (GBrowserIsCompatible()) {

var map = new GMap2(document.getElementById("geomap"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setMapType(G_PHYSICAL_MAP);		
map.setCenter(new GLatLng(mLatitude, mLongitude), mZoom);

[B]GDownloadUrl("files/xml/geomap.xml", function(data)[/B] {
  var xml = GXml.parse(data);
  var markers = xml.documentElement.getElementsByTagName("marker");
  for (var i = 0; i < markers.length; i++) {
	var latlng = new GLatLng(parseFloat(markers[i].getAttribute("lat")),parseFloat(markers[i].getAttribute("lng")));

	var listingid = markers[i].getAttribute("listingid");
	var image = markers[i].getAttribute("image");		
	var url = markers[i].getAttribute("url");
	
	var marker = createMarker(latlng, listingid, image, url);
	map.addOverlay(marker);
  }
});

}
}