4 filesupdated Jun 18, 2026
README
rspec_xml_validation_matchers
Setup
Dependencies:
- rspec
- rspec_on_rails
- libxml
Overview
Adds some matchers to check if some xml conforms to a dtd/xsd
Usage
describe User do before do @user = User.new end
it "should create xml that conforms to the dtd" do @user.to_xml.should conform_to_dtd('user.dtd') end
it "should create xml that conforms to the xsd" do @user.to_xml.should conform_to_dtd('user.xsd') end end
Developer
John Barton - http://whoisjohnbarton.com c/o Eden Creative Communities - http://eden.cc