xml-formatter

js
Converts a XML string into a human readable format (pretty print) while respecting the xml:space attribute
Keywords
xmlprettyprintpretty-printindentparserformatterxml:spacepreserve
<script src=" https://cdn.jsdelivr.net/npm/xml-formatter@3.6.6/dist/browser/xml-formatter-singleton.min.js "></script>
No default JS file set by the package author so the URL is guessed. You can always browse all package files to use another one.