I'm trying to pull information from a list in SharePoint using SPServices (a jQuery library). I'm able to access the list just fine with the GetListItems operation but I'm having trouble pulling the values from the columns. Basically, in it's simplest form, I have a column called 'Title' and I want to print a list of all the values in that column. Below is my code, I'm not sure what I need to pull from 'x' and the documentation on codeplex isn't very thorough. I've checked quite a few other threads but none seemed to solve this issue. Any help would be wonderful.
$().SPServices({
operation:"GetListItems",
async: false,
listName: "Retention Test List",
completefunc: function(xData, Status){
//alert(xData.responseText);
x = $(xData.responseXML).SPFilterNode("z:row")
$(xData.responseXML).SPFilterNode("z:row").each(function(){
document.write(x.innerHTML);
});
}
});