On the fly XML

So I have XML generated on the fly for Virtual Earth using a simple URL.

All this does is echo out the XML file (which works fine if I save it). For instance if I was to set the

Code Snippet
var veLayerSpec = new VEShapeSourceSpecification(VEDataType.GeoRSS, 'http://www.domain.com/map/getGeoRSS/', 'existingLayer');

Should I be doing this some other way? (I would like for the XML data to be as secure as possible...

[563 byte] By [Athfar] at [2008-1-4]
# 1
Another way is to call a web handler page (eg: FindNearby.ashx). This would generate and spit out the feed. However ultimately anyone with enough experience with debugging could simply run firebug and monitor the responses so that's something you may want to keep in mind.

Hope that helps,

DerekChan at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 2

Echoing what Derek said, there's really not going to be a way to hide your feed from users of your site. Since the fetching of the feed is a standard fetch action.

If you're having all of your stuff (the map, too) inside a password protected area, you could consider trying a .htaccess file that you would have to get through first. Since you'd have to give it your username/password before loading the map page, the page generating your feed can (probably, I haven't tested this) be behind it as well, effectively blocking outside users.

jhofker at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified