-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Does this library support customize function for xpath? #144
Comments
I received your email and tried to use the new library. It works very well. Before, I use my extension library. It looks like this:
Now, I needn't to use my extension library any more, but I use another library which called Dawnx.Xml to generate XPathExpression. Because the XsltContext in the standard library is difficult to use, I create another library. Of course, you can use System.Xml.Xsl.XsltContext to compile XPathExpression. It doesn't matter, we just need a XPathExpression. This is the code I used to solve the problem before using HtmlAgilityPack 1.7.0.
The result is: Thank you. Have a nice day! |
That's great ;) I will try to look at your library once it gets released. Best Regards, Jonathan |
Hello!
Console output:
|
Thank you @zmjack , We will review it. Best Regards, Jonathan Performance Libraries Runtime Evaluation |
Does this library support customize function for xpath?
For example, there is a html string:
I want to find out all
<div>
which is start with category. In this case, they are category_1 and category_2.Therefore, I need to customize a function that is defined as match in the namespace fn. So that I can do this work with the following xpath expressions:
//div[fn:match(@id, 'category_\d+')]
But it not seem to be supported in the current version. If so, I think I need to create a pull request to support for this feature.
Looking forward to your reply.
The text was updated successfully, but these errors were encountered: