https://github.com/cvik/xml
Alternative XML parser for golang
https://github.com/cvik/xml
golang xml-parser
Last synced: 27 days ago
JSON representation
Alternative XML parser for golang
- Host: GitHub
- URL: https://github.com/cvik/xml
- Owner: cvik
- Created: 2017-09-15T20:40:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T00:22:20.000Z (almost 4 years ago)
- Last Synced: 2025-03-06T03:38:54.272Z (over 1 year ago)
- Topics: golang, xml-parser
- Language: Go
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An alternative XML parser
This package contains a conceptually simple in-memory xml-parser. It creates
a tree of nodes with parent-links on each level for easy down- and up-traversal.
### Properties
* Doesn't use any reflection
* Traversal friendly (double linked element tree)
* Keeps track of namespaces at every element level
### TODO
* Handle CDATA nodes
* Better error messages
* Better test-coverage (currently at 80.1%)
* Look into value coercion (maybe)
* Add documentation (current at 0%)
* Add usage examples
* Look into memory usage (currently a bit high)
* Add SAX functionality
## Testing
- `go test -coverprofile coverage.out`
- `go tool cover -html=coverage.out`