I\'m new to jQuery and would like to parse an XML document.
I\'m able to parse regular XML with the default namespaces but with XML such as:
Found solution in the comment: Parsing XML with namespaces using jQuery $().find
Using the second half of node name after the colon worked for me. Used .find("lat") instead of .find("geo\:lat") and it worked for me.
My setup:
Sample XML (snippet from Google Contacts API):
http://www.google.com/m8/feeds/contacts/mstefanow%40gmail.com/base/0
Parsing code:
var xmlDoc = $.parseXML( xml );
var $xml = $( xmlDoc );
var $emailNode = $xml.find( "email" );
$("#email").html($emailNode.attr("address"));