I am calling a webpage through ajax. Part of his answer is a small block of XML.
I tried to parse it, but jQuery only seems to find some of the nodes. For instance:
<aaa>
<text>bbb</text>
<image>test</image>
</aaa>
It finds the text just fine, but does not find the node image.
But if I change the spelling from "image" to "zimage", she finds it. Is the word "image" reserved when parsing XML through jQuery?
My jQuery code is very simple ...
$(data).find("zimage").each(function() {
alert("node found");
});
This code works, but when I use it ...
$(data).find("image").each(function() {
alert("node found");
});
He never finds anything.
source
share