Re:Htmlq: like jq, but for html
by hyperpallium2 on Tuesday September 07, 2021 @01:18PM
(#28447289)
Thanks! Not actually a reccommendation, but I have used xsltproc (command line xslt), but it is horrible to use because xslt syntax is horrible (though xslt's concepts are pretty cool). One thing is it enables you to use XPath in all its glory.
Just installed xq. It's nice just seeing the pretty-printed json output, so thanks for the pointer. Probably better than xmlstarlet for my usage, which just queries and outputs text, not xml. hmmm, that's probably true for most commandline uses...
If you have any other suggestions for parsing XML for exploratory purposes I'm very happy to hear them.