A
A
Alexander2014-05-31 10:32:48
XPath
Alexander, 2014-05-31 10:32:48

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

1 answer(s)
R
Rostislav Grigoriev, 2014-05-31
@asand3r

Try substring-after

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question