> It would probably be simpler to do this (untested):
>
>      $("item").each(function() {
>          var pictureTitle = $(this).find("title").eq(0).text();
>          var pictureUrl = $(this).find("link").eq(0).text();
>          // ...
>      });

Thanks!

> > Experimenting I solved with a:
> >     var pictureUrl = linkTag.nextSibling.nodeValue;
...
> That doesn't make any sense to me.  Can you post sample code somewhere
> for others to look at?

Here it is...

$("item").each (
            function() {

                    var titleTag = $(this).find("title")[0];
                    var pictureTitle= titleTag.firstChild.nodeValue;
                    var pictureUrl = linkTag.nextSibling.nodeValue;
           })

though I changed it because "var titleTag = $(this).find("title")[0];"
does not work in IE6.

-c.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to