itemsPerPage = 50; curPos = 0; function browseXML() { resultSetLength = $("session",xmlDataSet).length; strToAppend = ""; $("session",xmlDataSet).each(function(i) { var name = $(this).find('sessionName').text(); var chair = $(this).find('sessionChair').text(); var venue = $(this).find('venueName').text() var level = $(this).find("eventAttribute[name=level]").text() var start = $(this).find('sessionStartTime').text() var end = $(this).find('sessionEndTime').text() var startnew = Date.parse(start).toString('dddd, d MMMM | h:mm tt'); var endnew = Date.parse(end).toString('h:mm tt'); strToAppend += "

" + name + "

" + startnew + " - " + endnew + " | " + venue +"

Session Chair

" + chair + "

"; }); $("event",xmlDataSet).each(function(i) { var event = $(this).find("eventAttribute[name=event_id]").text() var subsection = $(this).find("eventAttribute[name=event_type]:first").text() var title = $(this).find("eventAttribute[name=title]").text() var description = $(this).find("eventAttribute[name=description]").text() var affil = $(this).find("eventAttribute[name=authoraffil]").text() strToAppend += "

" + title + "

" + description + "

" + affil + "
"; }); $("#content-update-item").html(strToAppend); };