// xmlXPathCastToNumber func (obj *XPathObject) CastToNumber() float32 { cdbl := C.xmlXPathCastToNumber(obj.Ptr) return float32(cdbl) }
func (r *XPathResult) Number() float64 { if r.Type() != XPATH_NUMBER { panic("libxml: Not a number") } return float64(C.xmlXPathCastToNumber(r.ptr)) }