REXMLで、ファイルを読んでくれないのですが、どうすればよいでしょうか。
xmlファイルは、アプリケーションと同じファイルフォルダにあります。
doc = REXML::Document.new("a.xml")

次の方法だと、エラーになります。
doc = REXML::Document.new(File.new("a.xml"))

rexml.rb:4:in `initialize': No such file or directory @ rb_sysopen - a.xml(Errno::ENOENT)
from rexml.rb:4:in `new'
from rexml.rb:4:in `<main>'