Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expression ¶
type Expression struct { Ptr *C.xmlXPathCompExpr // contains filtered or unexported fields }
func Compile ¶
func Compile(path string) (expr *Expression)
func (*Expression) Free ¶
func (exp *Expression) Free()
func (*Expression) String ¶
func (exp *Expression) String() string
type XPath ¶
type XPath struct { ContextPtr *C.xmlXPathContext ResultPtr *C.xmlXPathObject }
func (*XPath) Evaluate ¶
func (xpath *XPath) Evaluate(nodePtr unsafe.Pointer, xpathExpr *Expression) (nodes []unsafe.Pointer, err error)
need to add an error as a return value b/c xpath evaluation can return error
func (*XPath) RegisterNamespace ¶
func (*XPath) SetDeadline ¶
Click to show internal directories.
Click to hide internal directories.