Move to using Nokogiri's API as a model