lib/saml/kit/concerns/xsd_validatable.rb in saml-kit-1.0.23 vs lib/saml/kit/concerns/xsd_validatable.rb in saml-kit-1.0.24

- old
+ new

@@ -17,10 +17,10 @@ def matches_xsd?(xsd) return unless to_nokogiri.present? Dir.chdir(File.dirname(xsd)) do xsd = Nokogiri::XML::Schema(IO.read(xsd)) - xsd.validate(to_nokogiri).each do |error| + xsd.validate(to_nokogiri.document).each do |error| errors[:base] << error.message end end end end