XQ(1) | xq man page | XQ(1) |
xq - command-line XML and HTML beautifier and content extractor
xq [options...] [file]
Formats the provided file and outputs it in the colorful mode. The file can be provided as an argument or via stdin.
--version | -v
--help | -h
--indent int
--color | -c
--no-color
--tab
--xpath | -x string
--extract | -e string
--query | -q string
--attr | -a string
--html | -m
--node | -n
Format an XML file and highlight the syntax:
Utility also accepts input through stdin:
HTML content can be formatted and highlighted using -m flag:
Extract the text content of all nodes with city name:
Extract the XML content of all nodes with city name:
https://github.com/sibprogrammer/xq - official website
06 Nov 2022 |