Xml::rss
Home
Xml::rss, including xml::rss in my blog, and xml::rss talk in Folkestone.
Blog / forum etc:
Aug31
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:
I can easily get any of the elements with something like $('thing')
but how do I get them if the elements are namespaced, like
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 javascript 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 gecoded rss 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() + '
' );
} );
2007 :: Comment / reply
May16
Pictures
All that talk of KML 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.
2008 :: Comment / reply
Also there's an xml feed of xml::rss, a JSON feed, and a KML feed of xml::rss , search my xml::rss venue info.
Hope you found what you're looking for, if not please leave a message about "xml::rss".
Add xml::rss as a venue here, help me out, and the next person.
Google the site here

