How to Format and Validate XML
Step-by-step guide to pretty-printing and validating XML documents using the DevHexLab XML Formatter.
Tool Used
XML Formatter and Validator
1
Open the XML Formatter
Navigate to /tools/developer/xml-formatter.
2
Paste your XML
Paste minified or poorly indented XML into the input area. This could be an API response, a configuration file, or a SOAP envelope.
3
Format
Click Format. The tool validates the XML first and reports any syntax errors. If the XML is valid, it produces a properly indented, human-readable version.
4
Copy or download
Click Copy to grab the formatted XML or Download to save it as an .xml file.
All done!
You are ready to use XML Formatter and Validator like a pro.