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