xmlindent - Format XML files

At Atlassian about 90% of my work is with Maven - so I’m editing a lot of XML every day. One invaluable tool I’d like to share is xmlindent.

Reformatting poorly formatted XML is as easy as

$ xmlindent -w crappy_formatted.xml

  1. Is this the same as :

    xmllint –format –recover

  • For Emacs users nXML-mode is the way to go:

    http://www.thaiopensource.com/nxml-mode/

    Written by James Clark, who knows a thing or two about XML.

  • Leave a Reply