Parse XML Node Values With Colon Using jQuery

nec

New Member
I have the following XML\[code\]<?xml version="1.0" encoding="UTF-8"?><channel><item><title>Title One</title><g:image_link>Link One</g:image_link></item><item><title>Title Two</title><g:image_link>Link Two</g:image_link></item></channel>\[/code\]The following jQuery I am using to parse this XML and then do as I need with the values\[code\] $.ajax({ type: "GET", url: "test.xml", dataType: "xml", success: parseXml, failure: function(data){ alert("XML File could not be found"); } });function parseXml(xml){ $(xml).find("item").each(function(){ alert((this).find("title")); }); }\[/code\]This will output the title as expected. What I am struggling to do is simply \[code\]alert\[/code\] the \[code\].text()\[/code\] of \[code\]g:image_link\[/code\] simply putting this node name will not it seems give me what I desire.Thanks
 
Back
Top