Installing Plug-in XML Format in Sublime 3

Installing Plug-in
Open the editor and hit Ctrl+Shift+P to open Command Palette.
Type"Install Package" and hit Enter. Type Indent XML.

Select the highlighted plug-in and click Enter. You should see the message that saying the plug-in has been installed successfully.

Restart the editor. At least I had to.

Formatting XML

Copy the non formatted XML
Hit Ctrl + K + F.

You can also do it from the Menu option.

Formatting JSON
Hit Ctrl + K + F.
You can also do it from the Menu option.
That's it for today. Happy Formatting !

Format XML with xmllint command

Linux / Unix Command: xmllint

xmllint - command line XML tool

xmllint [--version | --debug | --shell | --debugent
| --copy | --recover | --noent | --noout | --htmlout
|--nowrap | --valid | --postvalid | --dtdvalid URL
| --timing | --repeat | --insert | --compress
| --sgml | --html | --push | --memory | --nowarning
| --noblanks | --format | --testIO | --encode encoding
| --catalogs | --nocatalogs | --auto | --xinclude
| --loaddtd | --dtdattr | --dropdtd | --stream
| --chkregister] [xmlfile]

Example:
$xmllint --format summary.xml > ~/Desktop/summary-format.xml