can't get find/children/contents methods to return a set?
- $(this).find("link")
seems to return just one node, and not a 1 element array, so 'each' method won't work on it?
Additionally using 'children' instead of 'find' returns nothing at all, even though the link tag is an immediate descendent???
I have the following xml:
- <idea>
- <desc>blah</desc>
- <link>http://blah</link>
- </idea>
where 'this' was obtained with
- $(xmldoc).find("idea:first")
and
- $(this).find("link").text()
will return "http://blah", whereas I thought it needed to be $(this).children("link")[0] ? Basically I want to in future iterate across all possible 'link' tags, and this ain't going to work with what i'm currently getting. How do I achieve what i want?