On Wed, Jun 13, 2012 at 11:50 PM, genexp
<bcorr...@gmail.com> wrote:
Hi Folks -
I'm having a problem parsing a schema file. I'm at a loss. Here's the error I'm getting:
[4] pry(main)> xsd = Nokogiri::XML::Schema(File.read('lib/rua.xsd'))
Nokogiri::XML::SyntaxError: Element '{
http://www.w3.org/2001/XMLSchema}element', attribute 'type': References from this schema to components in no namespace are not allowed, since not indicated by an import statement.
from [path omitted]/nokogiri-1.5.3/lib/nokogiri/xml/schema.rb:37:in `from_document'
I'm not an XSD expert by any means, but I believe you have to use an <import> tag to reference a component.
HTH,
-m