From: Andreas Schwarz Date: 2003-05-03T04:07:59+09:00 Subject: chomp'ing REXML:Element.text Hello, I'm using the following code to read and chomp the content of a few elements from REXML. The problem is that I get an exception when an element is empty () because .text returns nil then. How can I solve this problem without writing large if-constructions? @company = customer.elements["company"].text.chomp @salutation =customer.elements["salutation"].text.chomp [...] Thanks Andreas -- AVR-Tutorial, �ber 350 Links Forum f�r AVRGCC und MSPGCC -> http://www.mikrocontroller.net