9 # Constructor. CData is data between <![CDATA[ ... ]]>
13 # CData.new( "Here is some CDATA" )
14 # CData.new( "Some unprocessed data", respect_whitespace_TF, parent_element )
15 def initialize( first, whitespace=true, parent=nil )
16 super( first, whitespace, parent, true, true, ILLEGAL )
19 # Make a copy of this object
22 # c = CData.new( "Some text" )
24 # d.to_s # -> "Some text"
29 # Returns the content of this CData object
32 # c = CData.new( "Some text" )
33 # c.to_s # -> "Some text"
43 # See the rexml/formatters package
45 # Generates XML output of this object
48 # Where to write the string. Defaults to $stdout
50 # The amount to indent this node by
57 # c = CData.new( " Some text " )
58 # c.write( $stdout ) #-> <![CDATA[ Some text ]]>
59 def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
60 Kernel.warn( "#{self.class.name}.write is deprecated" )
61 indent( output, indent )