class Nokogiri::XML::CDATA

def self.new(document, content, *rest) # :nodoc:

:nodoc:
def self.new(document, content, *rest) # :nodoc:
  length = content.nil? ? 0 : content.length
  node_ptr = LibXML.xmlNewCDataBlock(document.cstruct[:doc], content, length)
  node_cstruct = LibXML::XmlNode.new(node_ptr)
  node_cstruct.keep_reference_from_document!
  node = Node.wrap(node_cstruct, self)
  node.send :initialize, document, content, *rest
  yield node if block_given?
  node
end

def name

Get the name of this CDATA node
##
def name
  '#cdata-section'
end