lotofxpath = arrayofmanyxpaths.map{|s| "\"" + s + "\""}.join(",")
puts lotofxpath #=> "/html/body/a[1]", "/html/body/a[2]"
newb = doc.xpath(lotofxpath).to_a
this will not work, and complain about invalid xpath.
however, copying pasting the output string
newb = doc.xpath("/html/body/a[1]", "/html/body/a[2]").to_a
will work without problems!!!
what is happening here ?