title: How to retrieve comments with Camel and XPath
body: <p>I defined a route that consumes an XML message from a JMS queue. The processing is just the extraction of the comment and log it.</p>
  
  <pre><code>    from("jms:so")
              .setHeader("comment").xpath("//comment()", String.class)
              .setHeader("firstComment").xpath("//comment()[1]", String.class)
              .log("comment is ${headers.comment}")
              .log("first comment is ${headers.firstComment}")
              .to("jms:so.out");
  </code></pre>
  
  <p>The message is simple:</p>
  
  <pre><code>&lt;StackOverflow&gt;
      &lt;!--Camel--&gt;
      &lt;Nested&gt;
      &lt;!--Nested Camel--&gt;
      &lt;/Nested&gt;
  &lt;/StackOverflow&gt;
  </code></pre>
  
  <p>The issue is that the comment values are not extracted.</p>