title: NamespaceContext and using namespaces with XPath
body: <p>Resolving an xpath that includes namespaces in Java appears to require the use of a <code>NamespaceContext</code> object, mapping prefixes to namespace urls and vice versa. However, I can find no mechanism for getting a <code>NamespaceContext</code> other than implementing it myself.  This seems counter-intuitive.  </p>
  
  <p><b>The question:</b> Is there any easy way to acquire a <code>NamespaceContext</code> from a document, or to create one, or failing that, to forgo prefixes altogether and specify the xpath with fully qualified names?</p>