Topic: uninitialized constant LibXMLJRuby::XML::Schema

Hello,
I'm trying to validate a xml File against a '*.xsd' Schema-File.
- I have the libxml-jruby  Gem installed.
- I'm using JRUBY 1.4.0
My code looks like this:

require 'xml'
...
document = XML::Document.file(temp_file.path)
schema = XML::Schema.document(xsd_file_name)
document.validate_schema(schema)
...

I get this error:
uninitialized constant LibXMLJRuby::XML::Schema  sad

Does anybody know how to do it right?

Last edited by pango (2010-05-06 04:05:07)

Re: uninitialized constant LibXMLJRuby::XML::Schema

libxml gem is currently under heavy development, and the target of a pure Java Version seems very close:

http://blog.headius.com/2010/04/nokogir … sh-it.html

Ideas for a Workaround to fix the above issue are welcome.