/* * call-seq: * file * * Get the filename for the error */ static VALUE file(VALUE self) { xmlErrorPtr error; Data_Get_Struct(self, xmlError, error); if(error->file) return rb_str_new2(error->file); return Qnil; }