Nokogiri::XML::Schema SyntaxError on schema load

Viewed 3193

I'm trying to load a SAML Protocol schema (specificly this: https://www.oasis-open.org/committees/download.php/3407/oasis-sstc-saml-schema-protocol-1.1.xsd) but after doing this:

schema = Nokogiri::XML::Schema(File.read('saml11_schema.xsd'))

I'm getting this output:

Nokogiri::XML::SyntaxError Exception: Element '{http://www.w3.org/2001/XMLSchema}element', attribute 'ref': The QName value '{urn:oasis:names:tc:SAML:1.0:assertion}Assertion' does not resolve to a(n) element declaration.

Tried googling the error but there are no clues on what might be happening, could someone shed some light?

Note: Using RVM with Ruby 1.8.7-p370

2 Answers
Related