From: dblack@... Date: 2006-11-27T06:54:22+09:00 Subject: Re: REXML and Date interaction Hi -- On Mon, 27 Nov 2006, Robert Evans wrote: > Hi, > > I have a problem parsing dates from XML. I have this little program which > produces an error, and I was able to fix it by moving the date parsing into a > class that is distinct from the xml processing. Below is a broken version and > the error it prints, and then a working version with the correct output. I > would be grateful if anyone could explain what is going wrong here. It looks > like it turns the class Date into a string Constant. Your broken version worked for me. What version of Ruby are you using? David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org