18 March 2011

Format XML in CLI

$ xmllint --format file.xml
$ curl http://test.com/some.xml | xmllint --format -

No comments: