Issue with jquery & XML

Punjabi Killaz

New Member
I am attempting to parse xml using jquery and everything is working great..however what I would like to happen is a new div to be created for each 'client' node ie \[code\]<client id="1">name, id..etc</client> <client id="2">name, id..etc</client> \[/code\]Do I need to create a variable containing all the "client" information then append that to a div? \[code\]$(xml).find("client").each(function(){ $("#client").append('<div>' + $(this).find("name").text() + '</div>' + '<div id="'+ $(this).find("id").text() +'">' + '<img src="'+$(this).find("thumb").text()+ '" />' + '</div>' );});\[/code\]
 
Back
Top