Releases: beevik/etree
Releases · beevik/etree
Release v1.0.1
Changes
- Added support for absolute etree Path queries. An absolute path begins with
/or//and begins a search from the element's document root. - Added
GetPathandGetRelativePathfunctions to theElementtype.
Breaking changes
- A path starting with
//is now interpreted as an absolute path. Previously, it was interpreted as a relative path starting from the element whoseFindElementmethod was called. To remain compatible with this release, all paths prefixed with//should be prefixed with.//when used with any element other than the document's root. - [edit 2/1/2019]: Minor releases should not contain breaking changes. Even though this breaking change was very minor, it was a mistake to include it in this minor release. In the future, all breaking changes will be limited to major releases (e.g., version 2.0.0).
Release v1.0.0
The etree package is a lightweight, pure go package that expresses XML in the form of an element tree. Its design was inspired by the Python ElementTree module. Some of the package's features include:
- Represents XML documents as trees of elements for easy traversal.
- Imports, serializes, modifies or creates XML documents from scratch.
- Writes and reads XML to/from files, byte slices, strings and io interfaces.
- Performs simple or complex searches with lightweight XPath-like query APIs.
- Auto-indents XML using spaces or tabs for better readability.
- Implemented in pure go; depends only on standard go libraries.
- Built on top of the go encoding/xml package.
This is the first official release of etree, a go package that has been around for some time but until now has not played well with go vendoring solutions.