Answer the question
In order to leave comments, you need to log in
XPath, strip word from query result
Hello,
I happened to encounter working with XPath, if anyone knows, please tell me on this issue.
For example, there is a page: 168.ru/news.html?id=5476
I want to select the author's name from there with a request: Olga Demina
If you make a request like this: //div[@id='NewsContent']/div[@align=' right']/b, then the result also includes the word "Author: ". Can I make a request so that only the first and middle name remain?
The software is self-written, there is no way to change the result with third-party utilities, you only need to use XPath.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question