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