title: SPQuery not returning expected results
body: <p>I am trying to search for an item in a SharePoint list using SPQuery, but even though the file is there, the result is null.</p>
  
  <p>The code is the following:</p>
  
  <pre><code>var query = new SPQuery();
  query.Query = "&lt;Where&gt;&lt;Contains&gt;&lt;FieldRef Name='Title' /&gt;&lt;Value Type='Text'&gt;" + documentTitle + "&lt;/Value&gt;&lt;/Contains&gt;&lt;/Where&gt;";
  
  SPListItemCollection listItems = web.Lists["ListName"].GetItems(query);
  </code></pre>
  
  <p>documentTitle is the name of an existing document, and "ListName" is the name of the list in which the item is. </p>
  
  <p>The item is in the list, but the query returns 0 results.</p>
  
  <p>Can anyone help me with this?</p>