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

An example of using it with regular HTML? #115

Closed
OnkelTem opened this issue Jun 18, 2022 · 1 comment
Closed

An example of using it with regular HTML? #115

OnkelTem opened this issue Jun 18, 2022 · 1 comment

Comments

@OnkelTem
Copy link

Please could you provide an example of using it with HTML?
Specifically, is there a way to go with default namespacing? The documentation section on this is missied.

@JLRishe
Copy link
Collaborator

JLRishe commented Jun 20, 2022

We don't have documentation on this, but you can evaluate XPaths in HTML mode by using a parsed expression and passing isHtml: true when evaluating it.

See example here:
#27 (comment)

This would allow you to use XPath on an HTML document without namespace prefixes.

@JLRishe JLRishe closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants