Is there a way I can accomplish the following using Nokogiri's xpath()
?
doc.xpath("//pod[@id=or('anid','anotherid')]")
Try doc.xpath("//pod[@id='anid' or @id='anotherid']")
Try this XPath:
doc.xpath("//pod[@id='anid' or @id='anotherid']")
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