xmllint is a command line XML parser which provides syntax validation, gzip compression, and formatting options.
xmllint is a command line tool that is part of libxml2 which is a C Parser and toolkit that runs on multiple platforms. Download links for libxml2 can be found at http://xmlsoft.org/downloads.html