# beevik/etree

Parse, query and modify XML easily in go

Repository: https://github.com/beevik/etree
Canonical: https://ross.abutalabs.com/products/etree
Language: Go
License: BSD-2-Clause
License Family: permissive
Topics: xml, go, dom, etree, path, xml-parser, xpath
Last push: 2026-08-15T21:45:48+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 74, longevity 100
- inputs: {"age_days": 4827, "days_push": 18, "days_rel": 18, "gap_med": 101.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1667, forks 187 (observed 2026-08-28T04:05:19.626124+00:00)

## What it is
A lightweight, pure Go library that represents XML documents as element trees, inspired by Python's ElementTree. It supports parsing, creating, modifying, serializing XML, and querying with XPath-like APIs.

## Use cases
- parse xml files in go
- query xml with xpath-like expressions
- create xml documents from scratch
- modify and re-serialize xml
- pretty-print xml with indentation
- traverse xml element trees

## When to choose
- you need an easy, ElementTree-style XML API in Go
- you want a pure-Go dependency with no external libraries
- you need lightweight XPath-like querying without full XPath

## When to avoid
- you need full, standards-compliant XPath support
- you need schema validation (XSD) or DTD validation
- you need streaming parsing of very large XML documents

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, search-engine
- domain: parsers, developer-tools, files
- platform: go, cross-platform
- tags: xml, dom, xpath-like-queries, element-tree, pure-go

## Member repositories
- beevik/etree (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:19.626124+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:52.461207+00:00, confidence not recorded.
  - readme: https://github.com/beevik/etree (fetched 2026-08-28T04:05:19.626124+00:00, sha 47c9ae6864f3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
