Is there some kind of CSS multiple selector (comma) in XPath, so I could find fetch, say, //img and //*[@background] elements in one query?
There is an or operator (|) in XPath:
//img|//*[@background]
In addition to the "union" operator | which exists in XPath 1.0 and 2.0 there is also the "comma" operator , in XPath 2.0 to form a sequence of items e.g. //img, //*[@background].
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With