XMLStarlet is a set of command line XML utilities
which can be used to transform, query, validate,
and edit XML documents and files using a simple
set of shell commands, similar to the way it is
done for plain text files using
grep/sed/awk/tr/diff/patch.