/* * call-seq: * c2 * * Get the first child. */ static VALUE get_c2(VALUE self) { xmlElementContentPtr elem; Data_Get_Struct(self, xmlElementContent, elem); if(!elem->c2) return Qnil; return Nokogiri_wrap_element_content(rb_iv_get(self, "@document"), elem->c2); }