From: Re Qu Date: 2008-06-26T21:42:39+09:00 Subject: How to add CDATA section in XML file? Dear all, I am fairly new to ruby and am trying to create a CDATA section in an XML file. Here is an example of what I am trying to produce: ]]> I have been able to add the section using CData.new. But I get an error when trying to add the remaining XML. I thought this code might work: $xmldata = e11 = Element.new("TestFlowModel") cdata = CData.new($xmldata) But unfortunately this gives me a "Object#type is deprecated; use Object#class" error. Any ideas on how I can achieve this? Thank you in advance -- Posted via http://www.ruby-forum.com/.