How To Install Xmllint Windows May 2026
If you use Chocolatey for Windows software management:
xmllint --noblanks input.xml > output.xml
When you reach the "Select Packages" screen: How To Install Xmllint Windows
If you don’t have Chocolatey, open PowerShell as Administrator and run: If you use Chocolatey for Windows software management:
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
During the package selection step, search for libxml2 and check the box next to libxml2 (and optionally libxml2-devel). When you reach the "Select Packages" screen: If
xmllint --format ugly.xml > pretty.xml