class Nokogiri::XML::ElementContent

def self.wrap pointer, document

def self.wrap pointer, document
  return nil if pointer.null?
  c = ElementContent.allocate
  c.cstruct = LibXML::XmlElementContent.new pointer
  c.instance_variable_set :@document, document
  c
end

def c1

def c1
  self.class.wrap cstruct[:c1], document
end

def c2

def c2
  self.class.wrap cstruct[:c2], document
end

def children

Get the children of this ElementContent node
##
def children
  [c1, c2].compact
end

def name

def name
  cstruct[:name]
end

def occur

def occur
  cstruct[:ocur]
end

def prefix

def prefix
  cstruct[:prefix]
end

def type

def type
  cstruct[:type]
end