I am trying to use Xpath to search for nodes within an html block.
I have found the HTML can have random XML nodes. eg <john></john>
or <john@gmail.com></john@gmail.com>
How do I structure the xpath query to find all instances in a single search.
I've tried the following but not having luck.
//john@gmail.com|//anotheremail@gmail.com|//john|//anotheremail
//john@gmail.com|anotheremail@gmail.com|john|anotheremail
//john@gmail.com or anotheremail@gmail.com or john or anotheremail
But it doesn't produce the result set.
If I search for them individually, I can get matches.
What am I doing wrong here?