class Nokogiri::XML::Schema

def valid?(thing)

file.
Returns true if +thing+ is a valid Nokogiri::XML::Document or
##
def valid?(thing)
  validate(thing).empty?
end