[jQuery] Explain this,please.

[jQuery] Explain this,please.


Hi guys,
I'm having problems within the callback function processXML in the
following code:
It works this way:
function processXML (xmlData){
$('div#days1').text($("items>item>days",xmlData).text());
$('div#total1').text($("items>item>total",xmlData).text());
     }
not this way:
function processXML (xmlData){
var days1=$("items>item>days",xmlData).text();
var total1=$("items>item>total",xmlData).text();
$('div#days1').text(days1);
//$('div#total1').text(total1);
     }