Hi, Mike.
Thanks for the hint. Will try it tonite at home :-)
Jean
On Oct 16, 2:28 am, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > Second, I´ve found a solution using the DOM while it works is far from
> > being jQuery pure code:
>
> > //Iterate among all retrieved items.
> > $('item', xml).each(function(i){
> > //Retrieve the Node of the item.
> > Item = $('item',xml).get(i);
> > //Point to the Text to be changed.
> > Elem =
> > document.getElementById(Item.attributes[0].nodeValue);
> > //Perform the change.
> > Elem.innerHTML = Item.childNodes[0].nodeValue
>
> > Obviously I am using some middle vars that are not really necessary
> > but so far I prefer it this way.
>
> > Yes, it works now but I would like to learn how to do the same with
> > pure jQuery so any help is still appreciated.
>
> This should work:
>
> $.get("Thefile.xml", function (xml) {
> $('item', xml).each(function() {
> var $this = $(this);
> var id = $this.attr('id');
> $('#'+id).html($this.text());
> });
>
> });