Short and sweet : I'm parsing an XML document and adding new job openings into a sharepoint list as well as deleting them if the job id's and deleting them if the particular job id is not present in the list item collection.
Here's the question:
If i try to query a field value from the item collection that dosent exist, will that cause an error?
foreach (ListItem listItem in items)
{
console.WriteLine(listItem["Title"]=="XYZ") // say, there is no item with a title "XYZ"
}