I'm using xmllint on the command line to normalize the various indentation schemes people are using. Unfortunately xmllint also likes to remove empty lines which I would like to keep because they help structure the document better. Is there any way xmllint (or some other tool) can correct indentations but allow empty lines?
(Of course it would be nice if the tool normalized CR and CRLF to LF while it's at it, but that's less important).
We work on Mac/Linux/Windows, but mostly on the first two. Windows support is not essential.