Standard xpath syntax to find all nodes with a given name (e.g. "//nodeName") fails
===

I've loaded up an XML document and I'm attempting to use xpath to find all nodes with the name "CodeList". For whatever reason, the xpath expression "//CodeList" provides 0 nodes, but the xpath expression "/.//CodeList" provides me with the list of correctly identified nodes. Reading through various tutorials on the Internet, "//CodeList" should be the correct syntax to do what I want.

I'm not certain as to why this is happening. The xpath expression "." and "/." return the same node, which seems to be the document (getNodeName returns "#document"). Someone suggested that the libraries in my classpath could be the source of the problem. So far, the only XML-related libraries that are dependencies are xmlbeans-2.3.0, xml-apis-1.3.04, xalan-2.7.1, xercesImpl-2.9.1