title: Unclear results with jdom2 XPath query
body: <p>I have problem with jdom2 XPath:</p>
  
  <p>test.xhtml code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"&gt;
  &lt;head&gt;
  &lt;title&gt;mypage&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="in"&gt;
  &lt;a class="nextpage" href="url.html"&gt;
  &lt;img src="img/url.gif" alt="to url.html" /&gt;
  &lt;/a&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Java code:</p>
  
  <pre><code>Document document;
  SAXBuilder saxBuilder = new SAXBuilder();
  
  document = saxBuilder.build("test2.html");
  XPathFactory xpfac = XPathFactory.instance();
  XPathExpression&lt;Element&gt; xp = xpfac.compile("//a[@class = 'nextpage']", Filters.element());
  for (Element att : xp.evaluate(document) ) {
    System.out.println("We have target " + att.getAttributeValue("href"));
  }
  </code></pre>
  
  <p>But just with this I can't get any element. I found that when query is <code>//*[@class = 'nextpage']</code>, it finds it.</p>
  
  <pre><code>We have target url.html
  </code></pre>
  
  <p>It must be something with namespace or anything other in header because without it it can generate some output. I don't know what I'm doing wrong.</p>