Boris Glawe wrote:
> Hi,
> 
> I am trying to parse an xml file on my fedora Core 3 machine.
> I started with a tutorial from this site:
> http://www.germane-software.com/software/rexml/docs/tutorial.html
> 
> #!/usr/bin/ruby
> 
> require "rexml/document"
> file = File.new( "mydoc.xml" )
> doc = REXML::Document.new file
> 
> When executing this trivial peace of code I get the message:
> 
> /usr/lib/ruby/1.8/rexml/element.rb:2:in `require': No such file to load 
> -- rexml/namespace (LoadError)
>         from /usr/lib/ruby/1.8/rexml/element.rb:2
>         from /usr/lib/ruby/1.8/rexml/document.rb:1:in `require'
>         from /usr/lib/ruby/1.8/rexml/document.rb:1
>         from ./test.rb:3:in `require'
>         from ./test.rb:3
> 
> What's the problem? Is something wrong in the code or is my installation 
> missing this "rexml/namespace" file?
> 
> This for any hint.

The xml file "mydoc.xml" has to exist, for this tutorial to work. It 
doesn't unless you created it, last time I checked. A few more lines 
down he gives a xml example of using a String, copy and paste that into 
a file and call if "mydoc.xml". Let us know if it don't go... happy rubying,

Zach