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 (<element></element>) 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