At the bottom of the schema-test.rb in the libxml gem, there is this
bit of code.

This is when I realize I still have a long way to go with Ruby.  I
don't get the {} block right after the 1st line, how does this work,
its like a {} block in do-end block ? weird.

Of course, what I am after is the message in the case schema
validation fails !


if doc.validate_schema(schema) { |message, error| puts "#{error ?
'error' : 'warning'} : #{message}" }
  puts "validation passed"
else
  puts "validation failed"
end