Polenta XML Formatter - PFormatXML
Description
PFormatXML formats (pretty-prints) XML files into readable, consistently indented output. It's perfect for cleaning up messy XML generated by tools, logs, or exports.
Platform: Windows 10/11 (x64)
License: Freeware
Version: 1.0.0
Features
- Pretty-print XML
Reformats XML with consistent indentation and newlines. - In-place formatting
By default, overwrites the input file (use-oto output to a new file). - Safe backups (
-b)
Creates an.xml.bakbackup before overwriting. - Configurable indentation
Use spaces (--indent 2,--indent 4, ...) or tabs (--tabs). - Wildcards & recursive (
-r)
Format multiple files using patterns like*.xmland**\*.xml, or pass a directory to format all XML files inside it. - Quick Links (
-ws/-don)
Open the Polenta Connection website or donate page.
Usage
PFormatXML.exe [options] input.xml
Examples
PFormatXML.exe input.xmlFormat in-place (overwrite
input.xml)
PFormatXML.exe *.xmlFormat all XML files in the current folder (in-place)
PFormatXML.exe -r .\configsRecursively format all XML files under
.\configs (in-place)
PFormatXML.exe -r .\configs\**\*.xmlRecursively format matching XML files using
** pattern
PFormatXML.exe -i input.xml -o formatted.xmlWrite formatted output to a new file
PFormatXML.exe input.xml -bCreate a backup (
input.xml.bak) before overwriting
PFormatXML.exe input.xml --indent 4Use 4 spaces indentation
PFormatXML.exe input.xml --tabsUse tabs indentation