jnicklas/capybara — pull request #524 by johnf (2011-10-17 12:37:11+00:00)
Title: XML Support in Rack Test

Detect if Content-Type is XML and then use Nokogiri::XML instead of
Nokogiri::HTML to parse the content. This fixes two issues.

Firstly it stops XML being wrapped with an HTML doctype and body tags.

Secondly it stops tags being normalised to lower case and allows tags
with colons like .