class Nokogiri::XML::Schema

def validate thing

+thing+ is returned.
Nokogiri::XML::SyntaxError objects found while validating the
Nokogiri::XML::Document object, or a filename. An Array of
Validate +thing+ against this schema. +thing+ can be a
##
def validate thing
  if thing.is_a?(Nokogiri::XML::Document) 
    validate_document(thing) 
  elsif File.file?(thing)
    validate_file(thing)
  else
    raise ArgumentError, "Must provide Nokogiri::Xml::Document or the name of an existing file"
  end
end