« Blazing fast upload at the library | Main | Scorchin' in-memory db benchmark with 1 TB RAM »

Unable to load source file - GeoRSS for Virtual Earth API


I was investigating some issues this morning integrating dynamically generated GeoRSS with Microsoft's Virtual Earth API. Turns out that the issue is that the API requires appropriate MIME-type for GeoRSS, even when the conent itself is XML. There is an answer...

I think this is simply a matter of how you are setting the MIME type when you generate the file. Here (http://www.geograph.org.uk/syndicator.php?format=GeoRSS) is a sample feed I found on the GeoRSS.org web site. Notice that it is a .php page that auto-generates a GeoRSS file (no .xml extension). It works in my VE mashup without a problem.

The PHP solution is straight-forward. Before spilling out the XML, include this code"

$charset = "iso-8859-1";
$mime = "application/xml";
header("Content-Type: $mime;charset=$charset");

Comments (10)


This magnificent phrase is necessary just by the way


I congratulate, what necessary words..., a remarkable idea

That works in Firefox but not IE.

eInvIO jxisgpej gtsyebjj mmepbpzb

rfcqzfpr inpnnzzx fvmnzdng

uiyywnoc pqnfumau mffmbcxx

cppftnth fxboxyhn lokuhgkx

bwsjstfc uxomukyf bjbetvts

wqvmbkhe ziwkuoxs flqezybp

nymlugxf jafojqwj jntqdqaz

Post a comment


Please enter the security code you see here

About

This page contains a single entry from the blog posted on May 24, 2007 6:58 AM.

The previous post in this blog was Blazing fast upload at the library.

The next post in this blog is Scorchin' in-memory db benchmark with 1 TB RAM.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.35