I can't use XPath because the encoding gets weird. I hoped you could help me out of this trouble.
require "Nokogiri"
require "open-uri"
link = "http://www.arla.dk/Services/SearchService.asmx/RecipeResult?q=allRecipe&paging=6&include=&exclude=&area=recipeSearch&languageBranch=da"
doc = Nokogiri::HTML(open(link))
doc.xpath("//h2")
The xpath
method returns an empty array. It looks like the document has not been parsed correct. I think it is due to the file being parsed contains the encoded characters:
<strong>Frokost til 8</strong>
<ul><li class='ingHeading'><strong><b>Flade