Can Nokogiri Parse a Nokogiri Object?
- by Jesse J
I'm trying to parse a part of the result of a parse, like this:
queries = @doc.xpath("//spectrum_query")
queries.each do |query|
hits = query.xpath("//search_hit")
end
But instead of Nokogiri only searching for search_hits inside the query, it searches for search_hits in the whole document. I'm sure there's a different way to accomplish what I want, but doing it like this would be the simplest.
Anyone know if it's possible to search just the query object?