XML
CLI parsers
python-yq/xq
- GitHub
- xq docs
- Depends on jq
- Best XML parser so far
- Downside: Arch package
yq
conflicts with Arch packagego-yq
- Solution: Install locally in Python venv, or globally with
pipx install yq
- Solution: Install locally in Python venv, or globally with
Usage
List all recently used files:
xq -r '.xbel.bookmark[]."@href"' ~/.local/share/recently-used.xbel
sibprogrammer/xq
Usage:
xq -x /user/@status
curl https://storage.googleapis.com/versatiles/ | xq
curl https://storage.googleapis.com/versatiles/ | xq -x '/ListBucketResult/Contents/Key'
xmlstarlet
- Website
- Last commit: 2018
- Includes
xmllint
sudo pacman -S xmlstarlet