https://github.com/santhosh-tekuri/xpathparser
XPath 1.0 Parser in Go
https://github.com/santhosh-tekuri/xpathparser
go golang parse parser xpath
Last synced: 5 days ago
JSON representation
XPath 1.0 Parser in Go
- Host: GitHub
- URL: https://github.com/santhosh-tekuri/xpathparser
- Owner: santhosh-tekuri
- License: bsd-3-clause
- Created: 2017-05-19T09:39:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-04T09:43:12.000Z (over 6 years ago)
- Last Synced: 2025-04-16T15:14:36.084Z (8 days ago)
- Topics: go, golang, parse, parser, xpath
- Language: Go
- Size: 30.3 KB
- Stars: 11
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - xpathparser
README
# xpathparser
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://godoc.org/github.com/santhosh-tekuri/xpathparser)
[](https://goreportcard.com/report/github.com/santhosh-tekuri/xpathparser)
[](https://travis-ci.org/santhosh-tekuri/xpathparser)
[](https://codecov.io/github/santhosh-tekuri/xpathparser?branch=master)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:
```go
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