Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
dasel
Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
-
xidel
Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
I'm looking for something similar to jq but for processing XML & other similar formats. I know about yq, but I'd prefer something for XML that isn't a wrapper or changes the output to be JSON.
I'm looking for something similar to jq but for processing XML & other similar formats. I know about yq, but I'd prefer something for XML that isn't a wrapper or changes the output to be JSON.
Have you looked at xmlstarlet, dasel, or petl ?
You want xidel! Check out https://www.videlibri.de/xidel.html (apologies, I'm mobile at the moment and can't link properly).