What it is
Formatting rewrites XML with consistent indentation so nested elements are easy to scan, while well-formedness validation checks that tags are properly opened, closed, and nested according to XML syntax rules.
When to use it
Use this when a minified XML API response, config file, or SOAP payload is unreadable, or when you need to quickly confirm a hand-edited XML document is still well-formed before saving it.
Gotchas & limits
Well-formedness only checks XML syntax, not validity against a schema (DTD or XSD); a document can be well-formed XML while still violating the rules of the format it's meant to represent.