Hmmm, ok from what I see there are a few issues here. Your GeoRSS syntax as posted is v4 syntax. A v5 implementation would look like the below. I'm referencing a file local to the hosting htm page; otherwise you'd need to throw in a full URL. You can check the SDK further for what null method parameters I'm passing in here...those can be populated and used as you need. Other things to consider as you test are a) the API agressively caches the xml files, so changes aren't reflected instantly as you refresh the map control; b) I have not been able to successfully set custom <icons> from within the GeoRSS file itself -- it is as though the xml parser has a glitch in it that v4 did not; and c) the parser is much stricter in requiring <title> and <description> nodes [it will throw js errors where v4 did not].
function v5hazards()
{
var layer = new VEShapeSourceSpecification(VEDataType.GeoRSS,'GeoRSSTest7.xml',null)
map.ImportShapeLayerData(layer,null,true);
}
Source file:
< xml version="1.0" >
<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
<title>Sample location</title>
<description>Aspen, CO</description>
<item>
<title>Sample location</title>
<description>Aspen, CO</description>
<geo:lat>39.1930007935</geo:lat>
<geo:lon>-106.820999146</geo:lon>
<icon>pushpin-green.gif</icon>
</item>
</channel>
</rss>