can't get find/children/contents methods to return a set?

can't get find/children/contents methods to return a set?



  1. $(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:

  1.  <idea>
  2.         <desc>blah</desc>
  3.         <link>http://blah</link>
  4.           </idea>
where 'this' was obtained with

  1. $(xmldoc).find("idea:first")

and

  1. $(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?