User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401 If trying to do an XPath search on a document which has a default namespace defined e.g. <levelone xmlns="urn::hl7-org/cda" ...> the XPath engine will fail to find element "//levelone". If the default namespace is set to e.g. xmlns:cda the "//levelone" will work. Even if I try to create a namespace resolver where I set xmlns:cda to "urn::hl7-org/cda" I still cannot find anything with "//cda:levelone". Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 120571 [details] HTML file which demonstrates the bug, you need the other files too
This behavior is by design on XPath 1.0.