F
F
FaNaT2020-05-05 17:40:13
HTML
FaNaT, 2020-05-05 17:40:13

Why xpath request works differently in different versions of HtmlAgilityPack?

Hello. There is a program in which, using an xpath query, you can get links to images.
Request:

var screen = HD.DocumentNode.SelectNodes("//textarea[@class='hidearea']/a");


The data in the Html Agility Pack is loaded like this:
HD.LoadHtml(responseToString);

Where responseToString contains the following code:
https://jsfiddle.net/7fhyv1an/

But the screen variable always returns null. At the same time, similar code in another program works as it should. The only difference is that in the program where it works, the Html Agility Pack version is 1.4.5.9. And in the program where it does not work, there is Html Agility Pack version 1.11.22.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-05-05
@firedragon

The behavior has changed. For example, today I was looking for why I have a white menu with white text.
It turned out to be enough to change xamarin forms 4.5 -> 4.6

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question