xpath

package
v0.0.0-...-173cea9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2012 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(path string) (err error)

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 NewXPath

func NewXPath(docPtr unsafe.Pointer) (xpath *XPath)

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) Free

func (xpath *XPath) Free()

func (*XPath) RegisterNamespace

func (xpath *XPath) RegisterNamespace(prefix, href string) bool

func (*XPath) SetDeadline

func (xpath *XPath) SetDeadline(deadline *time.Time)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL