https://github.com/jochumdev/golxml
A fast replacement for encoding/xml.Unmarshal() based on Libxml2 for the Go programming language
https://github.com/jochumdev/golxml
Last synced: 2 months ago
JSON representation
A fast replacement for encoding/xml.Unmarshal() based on Libxml2 for the Go programming language
- Host: GitHub
- URL: https://github.com/jochumdev/golxml
- Owner: jochumdev
- License: bsd-3-clause
- Created: 2012-10-27T13:35:31.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-30T13:43:01.000Z (over 13 years ago)
- Last Synced: 2023-05-02T20:41:21.646Z (about 3 years ago)
- Language: Go
- Size: 145 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## A fast replacement for encoding/xml.Unmarshal() based on Libxml2 for the Go programming language
### Requirements
* [Go](http://golang.org/doc/install) >=1.0.2
* [gokogiri](https://github.com/moovweb/gokogiri) the libxml wrapper
* [gocheck](http://labix.org/gocheck) for tests/benchmarks
### Usage
See the [tests](https://github.com/pcdummy/golxml/blob/master/xml/xml_test.go) for examples
### Installation
Install with **go get** (make sure **$GOPATH** is not set to install in **$GOROOT**)
$ go get -u github.com/pcdummy/golxml/xml (-u flag for "update")
Run the tests
$ cd $GOROOT/src/pkg/github.com/pcdummy/golxml/xml
$ go test *.go
$ go test -gocheck.b *.go
### Known issues
* No namespace support
* No "omitempty" support
* Gokogiri does not compile with gccgo, see [issue 2313](http://code.google.com/p/go/issues/detail?id=2313)
### TODO list
* Add "omitempty" support
* Add support for gccgo