/* * call-seq: * parse_memory(data) * * Parse the document stored in +data+ */ static VALUE parse_memory(VALUE self, VALUE data) { xmlSAXHandlerPtr handler; Data_Get_Struct(self, xmlSAXHandler, handler); xmlSAXUserParseMemory( handler, (void *)self, StringValuePtr(data), RSTRING_LEN(data) ); return data; }