Pretty print in XML formatter

The current working of XML generator creates a string version of XML.
It would be very useful to add an option like “Pretty Print” available in JSON snaps.

You can pretty-print XML pretty easy with XSLT.

 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="xml" indent="yes"/>
 <xsl:strip-space elements="*"/>
 <xsl:template match="/">
  <xsl:copy-of select="."/>
 </xsl:template>
</xsl:stylesheet>
1 Like