/* * call-seq: * type * * Get the type for this node */ static VALUE type(VALUE self) { xmlNodePtr node; Data_Get_Struct(self, xmlNode, node); return INT2NUM((int)node->type); }