From: Paul Hepworth Date: 2006-07-08T00:51:35+09:00 Subject: hyphens in variable names Hello, I am new to Ruby and have an issue with a xmlsimple object resulting from a 3rd party webservice. The xml has nodes that have hyphens (-) in the names. When I try to access various hashes using the object variables I get errors telling that the variable doesn't exists. I realize that the ruby syntax doesnot like hyphens in variable names, how do I get around this? Example XML: ... ... Example Ruby : for tlist in object.tree-lists ... end Error would be: NoMethodError in TreeController#importproject undefined method `tree' for # Thanks in advance. Paul -- Posted via http://www.ruby-forum.com/.