NaliniDinesh
NaliniDinesh

Reputation: 15

Xpath to extract all the texts present inside all the div element

What is the XPATH I should use to extract only the inner text present in all the div elements.

Upvotes: 1

Views: 183

Answers (1)

mg_kedzie
mg_kedzie

Reputation: 437

//div/descendant-or-self::*/text()

Expression gives all text in does not matter how deep inside.

Upvotes: 1

Related Questions