Derek Chan

I noticed that this can't be found anywhere but here's a sample GeoRSS file for those who need something basic to start off with:

Code Snippet

< xml version="1.0" encoding="utf-8" >

<rss version="2.0" xmlns:geo="">




<description>Hello world!</description>


<name>Sample location</name>

<description>Aspen, CO</description>






There's a nice sample application here:

Re: Sample GeoRSS File


How is the text formatted in the bubble on the linked page your provided

Re: Sample GeoRSS File

Derek Chan

The text in the bubble is just HTML inside a <description> tag

Re: Sample GeoRSS File

Derek Chan

Also to help out for all:

There's a bug with VE rendering the <link> element inside your XML file that will cause a "..." text to appear rather than the link on the page (you can see it on the demo page provided above). Rather than store your url inside a <link> tag, a workaround would be to store it in an anchor tag in the <description> element. You won't be able to throw it inside a "<![CDATA[" escaper so you'll need a bit of grunt work to get your anchor tag in there. Here's a sample below that will redirect anyone to if placed inside your <description> element:

&lt;a href=&quot;;&gt;&lt;/a;&gt;click to go to helloworld site

it will look like this on the page source:
<a href=''></a>click to go to helloworld site

Re: Sample GeoRSS File


Derek, could you provide the georss.xml file for your example I tried loading the page found at

Code Snippet




<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script src=""></script>


var map = null;

var layerid=1;

function GetMap()


map = new VEMap('myMap');



function AddMyLayer(source)


var veLayerSpec = new VELayerSpecification();

veLayerSpec.Type = VELayerType.GeoRSS;

veLayerSpec.ID = layerid;

veLayerSpec.LayerSource = source;

veLayerSpec.Method = 'get';

veLayerSpec.FnCallback = onFeedLoad;




function onFeedLoad(feed)


alert('RSS or Collection loaded. There are '+feed.length+' items in this list.');




<body onload="GetMap(); AddMyLayer('rss.xml');">

<div id='myMap' style="position:relative; width:400px; height:400px;"></div>

Loading <a href="rss.xml">rss.xml</a>



and made this as a georss file:

Code Snippet">


Hello world!

Sample location

Aspen, CO



but i got this error: 'RSS or Collection loaded. There are 0 items in this list.'


Re: Sample GeoRSS File


Ok I got it to work. I didnt notice that your xml file was named 'rss.xml'. I had named it 'georss.xml', once i named everything correctly it worked fine.


Re: Sample GeoRSS File


Derek ,

Thanks for posting this, I had to peice this information from a couple different places before you posted your message. Do you know of any other formates besides the one you posted that will work. Also about your link example, I tried putting javascript into it and it didn't seem to run. Can you confirm that you can not have Javascript execute in the description field.

I also think it would be nice to beable to set the set OnMouseOverCallback and ShowDetailOnMouseOver directly in the feed as I have not figured out how to change these values for pushpins added in this manner


Re: Sample GeoRSS File

Derek Chan

I haven't had any success actually embedding <script> tags inside the description element but your probably looking for inline javascript. Below is a sample which generates an alert('hi') when the anchor tag is clicked

Code Snippet
<description>bla bla info here &lt;a href=&quot;;onclick=alert(&quot;hi&quot;);&gt;&lt;a;&gt;click to go to helloworld site</description>