I\'m trying to extract the StateLongName and StateShortName values from the xml below.
I know there has to be a simple elegant way to do this with jQuery.
It's case sensitive, use "Table" like this:
$(xml).find("Table").each(function() {
var stateName = $(this).find("StateLongName").text();
var stateCode = $(this).find("StateShortName").text();
});
Update: Sorry this one was a bit baffling, don't use Here's a full bare test page:, it treats it as html creating a
and things get stranger from there:) If you changed it to just abut anything else, it'll work, here's an example with it changed to : http://jsfiddle.net/Yvetc/