考虑这个
Beer <br> Vodka <br> rum <br> whiskey
您将如何在xpath中表达Beer?
/br/preceding-sibling::text() ?
伏特加酒呢?朗姆酒 ?
xpath nokogiri
nokogiri ×1
xpath ×1