title: How do i make Xpath search case insensitive
body: <p>I'm currently making a xpath search, I've got the the search working but I need to make it case insensitive. The xml file I'm using is 1.0 which from my research means I've got to use some thing called a translate function but I'm unsure of how to do this.</p>
  
  <p>Here is my search file :</p>
  
  <pre><code>$holidayDoc = simplexml_load_file('holidays.xml');      
  
  // fetch data from form
  $txtSearch = $_GET['txtSearch'];
  
  $qry = "//channel/item[contains(.,\"$txtSearch\")]";
  
  
  $holidays = $holidayDoc-&gt;xpath($qry);   // do the xpath query 
  // now loop through all the students
  
  echo "Showing title search results for $txtSearch";
  
  foreach ($holidays as $holiday) 
  {
  
   echo "&lt;p&gt;&lt;a href=\"{$holiday-&gt;link}\"&gt;{$holiday-&gt;title}&lt;/a&gt;&lt;/p&gt;
      &lt;p&gt;&lt;small&gt;$holiday-&gt;pubDate&lt;/small&gt;&lt;/p&gt;";
  </code></pre>
  
  <p>Any help would be greatly appreciated thanks.</p>