Just a thought. Would it make sense to use the community [xml cookbook](http://community.opscode.com/cookbooks/xml) here? It has support for more platforms and provides a way to install packages in compile time.
```ruby
node.override['xml']['compiletime'] = true
include_recipe 'xml'
```