hi, i believe this is an easy one, but i cannot get my head around it... i have a sample xml file:
<projects> <project> <name>first</name> <prod>first</prod> <ag>first</ag> <dir>first</dir> <date>03/25/2008</date> <status>production</status> </project> </projects> $(function() { //$('#update-target a').click(function() { $.ajax({ type: "GET", url: "xml/projects2.xml", dataType: "xml", success: function(xml) { $(xml).find('project').each(function(){ var name = $(this).find('name').text() var prod = $(this).find('prod).text() var ag = $(this).find('ag').text() var dir = $(this).find('dir').text() var date = $(this).find('date').text() var status = $(this).find('status').text() $('<div></div>') .html(name + prod + ag + dir + date + status) .appendTo('#update-target ol'); }); //close each( } }); //close $.ajax( //}); //close click( }); //close $( with this,i can get every <project></project> sequence inside a div, how can i put the child tags like <name>, <prod>, ... inside html tags like <div> or <span>. I tried wrap,wrapInner but couldn't make it work. thanks