xq
XML and HTML beautifier and content extractor.
A command‑line utility formats XML and HTML with syntax highlighting, automatic indentation, and pagination. It can read files directly, accept piped input, and process multiple documents in one call. In‑place editing is available, and the tool also supports converting the structured data to JSON while preserving element hierarchy, attributes, and text nodes.
The program extracts content using either XPath expressions or CSS selectors, allowing retrieval of node text, attribute values, or entire tag fragments. Options let users output only the selected portion, include tags, or produce JSON representations of the extracted data.
Installation is provided for macOS via Homebrew or MacPorts, for various Linux distributions through package managers, via a custom installer script, or by building from source with Go. Docker images are also supplied for isolated use.
Reviews
Loading reviews…
Similar apps
Terminals & CLI
yq
YAML processor.
Terminals & CLI
jq
JSON processor.
Terminals & CLI
rq
Record analysis and transformation tool
Terminals & CLI
dasel
JSON/YAML/TOML/XML processor (like jq/yq).

Markdown Editors
mq
Jq-like markdown processor.

Databases & Data Tools
squix
SQL client with query management and interactive results.