title: XPath lower-case() function
body: <p>I'm using XPATH to select certain nodes from an XML document.</p>
  
  <p>The user is able to insert a value for the location.  It's working fine, but it does not work if different cases are used.</p>
  
  <p>I've decided that changing both the XML values and the user's input to lower case before being compared is probably the best way to go about it.</p>
  
  <p>I've got this as my selector at the moment:</p>
  
  <pre><code>NodeIter = nav.Select("/Houses/House/location[contains(../location, '" + location_input + "')]");
  </code></pre>
  
  <p>I've tried putting the <code>lower-case()</code> function in various locations, but it isn't happy with it.</p>
  
  <p>How do I make it so that the value of <code>../location</code> is compared as lower case?</p>
  
  <p>Note: location_input is set to lower using <code>ToLower()</code> within my c# code.</p>