S
S
Shimpanze2018-09-13 15:53:35
XPath
Shimpanze, 2018-09-13 15:53:35

How to write an XPath expression?

Hello!
How to find all nodes other than links that don't have "href" attribute?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Fov, 2018-11-23
@Shimpanze

//*[not(@href) and name(.) != 'a']

F
Farwisdomer, 2018-09-13
@Farwisdomer

//*[not(@href)]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question