/xpathparser

XPath 1.0 Parser in Go

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

xpathparser

License GoDoc Go Report Card Build Status codecov.io

Package xpathparser provides lexer and parser for XPath 1.0.

This Package parses given XPath expression to expression model.

Example

An example of using this package:

expr := xpathparser.MustParse("(/a/b)[5]")
fmt.Println(expr)

This package does not evaluate xpath. For evaluating xpaths use https://github.com/santhosh-tekuri/xpath