Not quite. `xmlint --format` can introduce unwanted spaces. Consider this example.
<p><i>hello</i><b>!</b></p>
`xmllint --format` adds a space between the 'o' and the '!'.
<p><i>hello</i><b>!</b></p>
`xmllint --format` adds a space between the 'o' and the '!'.