// xmlXPathCastToString func (obj *XPathObject) String() string { cstr := C.xmlXPathCastToString(obj.Ptr) defer C.free(unsafe.Pointer(cstr)) return C.GoString(C.to_charptr(cstr)) }
func (r *XPathResult) String() string { if r.Type() != XPATH_STRING { panic("libxml: Not a string") } return xmlCharToString(C.xmlXPathCastToString(r.ptr)) }