How to parse namespace XML in Chrome 24 and jQuery 1.8.2?

amardikian

New Member
I am trying to parse the following XML:\[code\]<catalog> <ns:book> <author>Author</author> </ns:book></catalog>\[/code\]I have researched extensively and found the following (past) solutions and none of them currently work in Chrome 24 with jQuery 1.8\[code\] $(xml).find("ns\\:book").each(function() { $("#output").append($(this).find("author").text() + "<br />"); });\[/code\]nor\[code\] $(xml).find("book").each(function() { $("#output").append($(this).find("author").text() + "<br />"); });\[/code\]nor\[code\] $(xml).find("[nodeName=ns:book]").each(function() { $("#output").append($(this).find("author").text() + "<br />"); });\[/code\]In my research, it would seem that this is primarily a chrome issue and not a jQuery issue. Is there an accepted solution? Is there a better js library to use for XML parsing?
 
Back
Top