title: how to use XPath to find the node value with CDATA tag in java
body: <p>I used XPath to parse rss xml data, and the data is </p>
  
  <pre><code>&lt;rss version="2.0"&gt;
    &lt;channel&gt;
      &lt;title&gt;
        &lt;![CDATA[sports news]]&gt;
      &lt;/title&gt;
    &lt;/channel&gt;
  &lt;/rss&gt;  
  </code></pre>
  
  <p>I want to get the text "sports news" using xpath "/rss/channel/title/text()" ,but the result is not what I want ,the real result is "\r\n",so how to found the result I want.</p>
  
  <p>the code is below:</p>
  
  <pre>
      Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(is);
      XPathFactory xpathFactory = XPathFactory.newInstance();
      XPath xPath = xpathFactory.newXPath();
      Node node = (Node) xPath.evaluate("/rss/channel/title/text()", doc,XPathConstants.NODE);
      String title = node.getNodeValue();
  </pre>