U
U
Uncle Bogdan2021-06-12 16:11:34
Parsing
Uncle Bogdan, 2021-06-12 16:11:34

Why does a node return null when searching through xpath, although there is such an xpath on the site?

There is such an xpath on the site !

The code:

node = html.DocumentNode.SelectNodes("//*[@id='print']/div[2]/div[6]/div/div/div[2]/h4/span");

                        if (node != null)
                        {
                            Invoke(new Action(() => judje.Text = "Суд:\n" + node[0].InnerText.Trim()));
                        }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question