[jQuery] Newbie question: how to reference an element via XML attribute.

[jQuery] Newbie question: how to reference an element via XML attribute.


Hi, everyone.
Sorry for such simple question but not being familiar with jQuery I
just can´t find how to do this:
The objective is to change the content several elements of a page
loading an XML file via the "get" function.
The XML file:
<?xml version="1.0" encoding="UTF-8"?>
    <Texts>
        <item id="Txt1">Some text in english</item>
        <item id="Txt2">Some more text in ENG</item>
    </Texts>
The HTML code:
<span id="Txt1"></span>


<span id="Txt2"></span>


-->>>> Note each item in the XML file corresponds to a specific span
using the "id" attribute.
The jQuery code:
$.get("Thefile.xml",{}, function (xml){
    $('item', xml).each(function(i){
    NOW FOR EACH NODE I FIND I NEED TO UPDATE EACH SPAN ELEMENT WITH THE
VALUE I FIND BASED ON THE "id" ATTRIBUTE.
    });
I´ve been playing with this for a long while and simply can´t figure
it out.
Any help is appreciated.
Jean