New Supermarket Announcements!

Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the supermarket mailing list.

Select Supported Platforms


xml (18) Versions 1.3.1

Installs xml

cookbook 'xml', '~> 1.3.1'
cookbook 'xml', '~> 1.3.1'
knife cookbook site install xml
knife cookbook site download xml

XML Cookbook

Build Status Cookbook Version

Installs development package for libxml.



  • Debian/Ubuntu
  • RHEL/CentOS/Scientific/Amazon/Oracle
  • Arch Linux
  • Suse
  • FreeBSD


  • Chef 11+


  • build-essential
  • chef-sugar


  • node['xml']['packages'] - Array of package names that should be installed
  • node['xml']['nokogiri']['use_system_libraries'] - Whether to use system libraries for nokogiri (defaults to false)



Installs the development packages for libxml2 and libxslt.

For installing the packages during compile time:

node.set['xml']['compiletime'] = true
include_recipe 'xml::default'


Installs the nokogiri gem into Chef's Ruby environment so it can be used in recipes.

License & Authors

Author: Cookbook Engineering Team (

Copyright: 2009-2015, Chef Software, Inc. ``` Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```

Dependent cookbooks

chef-sugar >= 0.0.0
build-essential >= 0.0.0

Contingent cookbooks

app Applicable Versions
bootstrap Applicable Versions
cerner_splunk Applicable Versions
chef Applicable Versions
chef-manageiq Applicable Versions
chef-pry Applicable Versions
chef-server Applicable Versions
chef_handler_sns Applicable Versions
cloudformation Applicable Versions
diaspora Applicable Versions
fieri Applicable Versions
firewalldconfig Applicable Versions
gitlab Applicable Versions
gitlab-shell Applicable Versions
gitlabhq Applicable Versions
magentostack Applicable Versions
marketplace_ami Applicable Versions
openstack Applicable Versions
php Applicable Versions
rackspace_lbaas Applicable Versions
rackspacecloud Applicable Versions
route53 Applicable Versions
xmledit Applicable Versions

xml Cookbook CHANGELOG

This file is used to list changes made in each version of the xml cookbook.

v1.3.1 (2015-10-12)

  • Fixed compile errors on Chef 11
  • Added an empty array of packages for unknown systems to prevent failures on Windows and other operating systems

v1.3.0 (2015-10-06)

  • Added zlib1g-dev on Ubuntu / Debian to fix compiles
  • Add support for OS X
  • Add source_url and issues_url to metadata.rb for Supermarket
  • Updated readme to reflect that use_system_libraries actually defaults to false
  • Use compile_time attribute with chef_gem to avoid deprecation warnings
  • Update Chefspec tests to 4.X format
  • Add additional platforms to the Kitchen CI config
  • Use the standard Rubocop config and resolve all warnings
  • Add Ruby 2.1/2.2 to Travis and remove Ruby 1.9.3
  • Update Berksfile to 3.X format
  • Update contributing and testing docs
  • Update and expand testing dependencies in the Gemfile
  • Add and maintainers.toml files
  • Add cookbook version badge to the readme
  • Add Chef and platform requirements to the readme
  • Add Rakfile for simplified testing
  • Remove yum and build-essential from the Berksfile since these didn't need to be there
  • Update .gitignore and add chefignore to prevent extra files from being uploaded to the Chef server

v1.2.13 (2014-02-18)

  • Reverting compile_time work

v1.2.12 (2014-02-18)

  • Fixing last patch to play nicely with Chef Sugar

v1.2.11 (2014-02-18)

  • Fixing chef_gem for Chef below 12.1.0

v1.2.10 (2014-02-17)

  • Being explicit about usage of the chef_gem's compile_time property.
  • Eliminating future deprecation warnings in Chef 12.1.0.

v1.2.9 (2014-12-10)

  • Re-release with stove 3.2.2 to get a metadata.rb

v1.2.8 (2014-12-09)

  • [#11] Fix warning message from build-essential
  • [#13] pin nokogiri to a working version

v1.2.6 (2014-06-17)

  • [COOK-4468] Only set ENV variable when needed

v1.2.4 (2014-03-27)

  • [COOK-4474] - Bump apt and yum versions in Berksfile, Lock to build-essentials 1.4
  • [COOK-4468] - Set NOKOGIRI_USE_SYSTEM_LIBRARIES env variable

v1.2.2 (2014-02-27)

[COOK-4382] - Fix xml cookbook spec test [COOK-4304] - Set proper packages for SUSE 11



  • COOK-4304 - Now sets proper packages for SUSE 11



  • COOK-3462 - Allow installing packages during compile time


  • [COOK-2059] - missing dependency on build-essential


  • [COOK-1826] - support nokogiri chef_gem
  • [COOK-1902] - add support for archlinux


  • [COOK-1232] - add xslt to xml cookbook


  • [COOK-953] - Add FreeBSD support
  • [COOK-775] - Add Amazon Linux support

1.3.1 passed Foodcritic.