pretty-print xml in java (#11899)

* pretty-print xml in java

* simplified pom.xml
This commit is contained in:
Kai Yuan
2022-03-12 20:09:18 +01:00
committed by GitHub
parent adc75b8daa
commit caf9476bbb
8 changed files with 176 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>