Hi
> . How can i check whether the gem is installed properly or not.
> 

You can check with
gem list

> class FirstRubyProgram
>   require 'xml/libxml'
>   require 'rubygems'
> 
>   doc = XML::Document.new()
>   doc.root = XML::Node.new('root_node')
>   doc.root << XML::Node.new('elem1')
>   puts doc
> end

 The above should be

 class FirstRubyProgram
   require 'rubygems'
   require 'xml/libxml'

   doc = XML::Document.new()
   doc.root = XML::Node.new('root_node')
   doc.root << XML::Node.new('elem1')
   puts doc
 end



Sijo
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to