--- src/rexml/entity.rb.orig Wed Dec 10 01:19:31 2003 +++ src/rexml/entity.rb Wed Dec 10 01:20:08 2003 @@ -104,8 +104,11 @@ out << q << @ref << q out << ' NDATA ' << @ndata if @ndata else - q = @value.include?('"')?"'":'"' - out << q << @value << q + begin + q = @value.include?('"')?"'":'"' + out << q << @value << q + rescue StandardError,NameError + end end out << '>' end