From: gabriele renzi Date: 2003-09-19T19:17:21+09:00 Subject: Re: Problems with Soap4R 1.5.0 and Ruby 1.8 il Fri, 19 Sep 2003 17:22:35 +0900, "NAKAMURA, Hiroshi" ha scritto:: >I downloaded and installed ruby180-10.exe from >http://sourceforge.net/project/showfiles.php?group_id=67007 >It seems to work for me. > > C:\ruby\bin>ruby -rxmlparser -e 'p XML::Parser.new' > # > >I've no idea now. Is there anyone who met the error? > could it be related to the loading order of the variuos files ? It seem that in file lib/xsd/xmlparser XMLParser is defined as a module. Is it possible that at some point appears a thing like this that overrides the previous definiton of XMLParser as a class ? >> require 'xsd/xmlparser' => true >> XMLParser.class => Module >> require 'xml/parser' TypeError: XMLParser is not a class from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/xmlpa rser.so from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/xml/parser.rb:5 from (irb):3:in `require' from (irb):3 >> It seem that the pragprog installer delivers ruby\lib\ruby\site_ruby\1.8\xml* (I think it is XMLParser from yoshida masato ) and that in this module xmlparser.so defines ::XMLParser as a top level class, thus colliding with the XMLParser definition of XMLParser as a module. BTW having REXML as the parser fix this problem. just my 2 cents