...
XPath-1.0 processors typically provide a way to bind namespace external to the XPath 1.0 expression. For example, in JAXB, namespaces are bound to prefixes (and to the default namespace) using the http://docs.oracle.com/javase/7/docs/api/javax/xml/xpath/XPath.html#setNamespaceContext(javax.xml.namespace.NamespaceContext) the NamespaceContext method. See
See http://docs.oracle.com/javase/7/docs/api/index.html?javax/xml/xpath/XPath.html and the discussion on QNames in the class overview. Also see http://docs.oracle.com/javase/7/docs/api/javax/xml/namespace/NamespaceContext.html for details on how to bind the default namespace.
...