Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xpath doesn't work (suspect namespace issue) #21

Open
GoogleCodeExporter opened this issue Jul 26, 2015 · 4 comments
Open

xpath doesn't work (suspect namespace issue) #21

GoogleCodeExporter opened this issue Jul 26, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Open document with <html xmlns='http://some-namespace'>...</html>
2. open firepath
3. enter //div

What is the expected output? What do you see instead?
I expect many divs to be displayed


What version of the product are you using? On what operating system?
latest, windows xp, firefox 3.6.15


Please provide any additional information below.
Even if I do "copy XPath" from the document, still no nodes are found for that 
expression.
//* works as expected
//*[name()='div'] also works as expected
it seems using xmlns is the culprit, there needs to be a way to register a 
default namespace, or use have a hard coded prefix for default namespace.

Original issue reported on code.google.com by [email protected] on 14 Mar 2011 at 4:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant