Xq Command Line Xml Html Beautifier Content Extractor
ASecurity
xq is a command-line XML and HTML beautifier and content extractor written in Go. It provides syntax highlighting, automatic formatting, XPath and CSS selector queries, and JSON output conversion for XML and HTML documents.
Installs into .claude/skills of the current project.
Are you the author of Xq Command Line Xml Html Beautifier Content Extractor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-xq-command-line-xml-html-beautifier-content-extrac)
---
name: "xq Command-Line XML and HTML Beautifier and Content Extractor"
slug: "xq-command-line-xml-html-beautifier-content-extractor"
description: "xq is a command-line XML and HTML beautifier and content extractor written in Go. It provides syntax highlighting, automatic formatting, XPath and CSS selector queries, and JSON output conversion for XML and HTML documents."
github_stars: 1100
verification: "security_reviewed"
source: "https://github.com/sibprogrammer/xq"
author: "sibprogrammer"
publisher_type: "Individual Developer"
category: "Data Extraction & Transformation"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "sibprogrammer/xq"
github_stars: 1100
---
# xq Command-Line XML and HTML Beautifier and Content Extractor
xq is a command-line XML and HTML beautifier and content extractor written in Go. It provides syntax highlighting, automatic formatting, XPath and CSS selector queries, and JSON output conversion for XML and HTML documents.
## Prerequisites
Go 1.21+ or Homebrew
## Installation
Use the upstream install or setup path that matches your environment:
- brew install xq
- go install github.com/sibprogrammer/xq@latest
- docker compose run --rm xq
Requirements and caveats from upstream:
- Node content extraction
- Extract an attribute value instead of node content additional option --attr (-a) can be used:
- If you have Go toolchain installed, you can use the following command to install xq:
Basic usage or getting-started notes:
- Format an XML file and highlight the syntax:
- xq test/data/xml/unformatted.xml
- xq also accepts input through stdin:
- Source: https://github.com/sibprogrammer/xq
- Extracted from upstream docs: https://raw.githubusercontent.com/sibprogrammer/xq/HEAD/README.md
## Documentation
- https://github.com/sibprogrammer/xq#readme
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/xq-command-line-xml-html-beautifier-content-extractor/)