$.ajax({
url: '/foo.xml'
dataType: 'xml',
success: function(xml) {
$('title, #spalte1, #spalte2').empty();
$('root>title', xml).appendTo('title');
$('root>spalte1', xml).appendTo('#spalte1');
$('root>spalte2', xml).appendTo('#spalte2');
}
});
Nachtrag: das ist natürlich umständlicher.
Anstatt erst emtpy() und dann appendTo() zu notieren, sollte auch [replaceWith()](http://api.jquery.com/replaceWith/) funktionieren:
`$('#spalte1').replaceWith($('root>spalte1', xml));`{:.language-javascript}