Open source command line utility for XML file processing.
XMLStarlet is a set of command line tools which can be used to transform, query, validate, and edit XML documents and files using simple set of shell commands in similar way to what is done for plain text files using grep, sed, awk, diff, patch, join, etc commands.
Documentation: on Wikipedia