For developers already using WSL, this is the most seamless method:
You can download pre-compiled Windows binaries (usually from open-source mirrors or the libxml2 project page). xmllint windows
Extract the host attribute:
xmllint --noblanks document.xml --output minified.xml For developers already using WSL, this is the