:-1: on using nokogiri here. It makes installing/managing the cookbook mostly impossible. You need to have build-essential and bunch of libs installed just to use it. Are you familiar with REXML, Ruby's native XML-parsing library? It's API is less pretty, but it's bunded with Ruby core. We actually use it in the test suites if you need an example.