Georss

Home

Pictures

Georss, including georss in my blog, any mentions of geörss in my family tree and georss in Folkestone.

Blog / forum etc:

xml namespaces in jquery

Aug31
Recommended / related

Dang I'm struggling with some work code that I really ought not be thinking about on a Friday night...

How do I access xml tags in other namespaces using jquery? If I have some xml like:



hey
yeah
woo



I can easily get any of the elements with something like
$('thing')
but how do I get them if the elements are namespaced, like




hey
yeah
woo




I'm simplifying a bit there, but I can't find any info online about how to get this out again; I can't access my elements with

$('stuff:thing')

because that means a stuff tag of type thing...

What am I missing? Do you know what I'm on about? Do you care?

jquery is a brilliant library that I use for everything at work (though I haven't really brought this site up to date with much of it), but I'm struggling to use it to process some like the geo:lat and geo:long in here...

I could really do with knowing this for a fairly funky work project, but equally I could do with not thinking about this on a Friday night...

UPDATE: Just ignore the namespace and get it like this:
$('lat, long', xml ).each( function () {
$('#debug').append( '

' + this.nodeName + '=' + $(this).text() + '

' );
} );

:: Comment / reply

Never mind the KML

May16

Pictures

All that talk of yesterday got me looking at my maps again, they've not worked for ages, not since I added more tagging to all my Folkestone venues... so, not actually using the new kml version of the data, rather old georss xml versions, but at least the map is all working again now.

Comment / reply

KML

May15

Pictures

Created some kml files from my pub / restaurant data on Folkestone Gerald, part of my plan to clean up my maps and things, kml is a standard that's been adopted by google for google earth and maps and things, and is possibly better suited than my existing georss feeds. I say possibly, because at the moment I'm not sure these even work, and look, see the georss versions support tags and things. AND OBVIOUSLY, it's just XML, and what do you care about that? Not a great deal. You could or something, but they're not a great thing in their own right, like any feeds, they're just snippets of information that will be used by some other application, not directly by you, but I thought I'd throw them out there. This is the sort of thing I'm doing, it's all of the format

http://www.folkestonegerald.com/v/ Place / thing you are looking for .kml

They might be a bit slow

Food in Folkestone
Pubs in Folkestone
Vegetarian food in Folkestone
Pubs with gardens in Folkestone
Food in Sandgate
Pubs in Sandgate
Vegetarian food in Sandgate
Pubs with gardens in Sandgate
Food in Hythe
Pubs in Hythe
Vegetarian food in Hythe
Pubs with gardens in Hythe
Food in Canterbury
Pubs in Canterbury
Vegetarian food in Canterbury
Pubs with gardens in Canterbury
Food in Dover
Pubs in Dover
Vegetarian food in Dover
Pubs with gardens in Dover
Food in Fareham
Pubs in Fareham
Vegetarian food in Fareham
Pubs with gardens in Fareham

Comment / reply

Also there's an xml feed of georss, a JSON feed, and a KML feed of georss , search my georss venue info, georss on Your Folkestone.

Hope you found what you're looking for, if not please leave a message about "georss".

Add georss as a venue here, help me out, and the next person.

Google the site here

Google
Web this site