You can try my CLI tool xmq to pretty print and syntax highlight XML and HTML content. Note that it renders the XML/HTML/JSON content in the XMQ format, which is easier to read and edit. There is, however, a 1-1 mapping between XMQ and XML. The tool is very useful for analyzing large XML and HTML files.
The xmq tool also includes a pager for the terminal: xmq file.xml page
The tool can also render into a temporary html file which is automatically viewed in your default browser: xmq file.xml browse
It picks the color scheme from your terminals background color (light or dark), but you can override it:
XMQ_BG=dark xmq file.xml browse
XMQ_BG=light xmq file.xml browse
It works in a pipeline as well: curl https://slashdot.org | xmq delete //script delete //style page
Apart from deleting XPath matched nodes, there are other commands to convert to and from xmq/XML/HTML/JSON format and apply transformations to the content.
xmllintavailable on Debian systems, you need to install the packagelibxml2-utils(libxml2does not provide this tool, at least not on Debian 5.0 "Lenny" and 6.0 "Squeeze").