[GTALUG] Comparing XML/JSON files

William Park opengeometry at yahoo.ca
Mon Dec 6 15:48:25 EST 2021


Hi all,

I know of "xmldiff" and "jsondiff" to compare XML or JSON files.  But, 
they don't allow me to exclude certain node or keyword.  Do you know any 
command line program that does that, in one-shot?

If not, then I have to resort to
     1. For JSON, use 'jq' to remove keyword, and then compare.
     2. For XML, use 'xmlstarlet' to remove node, and then compare.

--William


More information about the talk mailing list