/* * call-seq: * path * * Returns the path associated with this Node */ static VALUE path(VALUE self) { xmlNodePtr node; xmlChar *path ; VALUE rval ; Data_Get_Struct(self, xmlNode, node); path = xmlGetNodePath(node); rval = rb_str_new2((char *)path); xmlFree(path); return rval ; }