title: Xpath count and compare datetime
body: <p>Below is my xml...</p>
  
  <p>What I am trying to do is using XPATH and count expression.. I want a count of when a date in xml matches Todays date. So for example Todays Date is "2011-05-05".. Any messages that match this date have a count and return a integer. so answer would be NumberofTodaysMessages = 2.</p>
  
  <pre><code>&lt;Response&gt;
      &lt;run_id&gt;1&lt;/run_id&gt;
      &lt;message&gt;
        &lt;timestamp&gt;2011-05-05T10:50:00.46875+00:00&lt;/timestamp&gt;
        &lt;event_type&gt;Information&lt;/event_type&gt;
        &lt;operation&gt;LoadProjects&lt;/operation&gt;
        &lt;error_code /&gt;
        &lt;details&gt;LoadProjects request detected&lt;/details&gt;
      &lt;/message&gt;
      &lt;message&gt;
        &lt;timestamp&gt;2011-05-05T10:50:02.296875+00:00&lt;/timestamp&gt;
        &lt;event_type&gt;Error&lt;/event_type&gt;
        &lt;operation&gt;Processor.InitaliseDCFiles&lt;/operation&gt;
        &lt;error_code /&gt;
        &lt;details&gt;some error details&lt;/details&gt;
      &lt;/message&gt;
      &lt;message&gt;
        &lt;timestamp&gt;2011-11-10T10:50:02.296875+00:00&lt;/timestamp&gt;
        &lt;event_type&gt;Debug&lt;/event_type&gt;
        &lt;operation&gt;Processor.InitaliseDCFiles&lt;/operation&gt;
        &lt;error_code /&gt;
        &lt;details&gt;some details&lt;/details&gt;
      &lt;/message&gt;
    &lt;Response&gt; 
  </code></pre>
  
  <p>How would I go about this in XPATH??</p>
  
  <p><strong>count(/Response/message/Timestamp[@DateTime.Now()])</strong></p>