Skip to content

Instantly share code, notes, and snippets.

@warrickcustomhomes
Created July 27, 2009 21:32
Show Gist options
  • Save warrickcustomhomes/156747 to your computer and use it in GitHub Desktop.
Save warrickcustomhomes/156747 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'xml'
doc = LibXML::XML::Document.file '/path/to/xml_document'
schema = LibXML::XML::Schema.new '/path/to/xml_schema'
doc.validate_schema(schema) do |message,flag|
puts message
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment