I am looking at using Beyond Compare 3 with XML Tidy compare comparison format. XML Tidy formats all the nodes with proper line breaks and indentation if an XML file is all slopped onto one line. ...So I would love a tool that can do this and can ignore differences in attributes, or not even show attributes at all (this is because attributes are irrelevant to my users).

Is there a tool that can do this?


Was it helpful?


An XSLT identity transform that omits the attributes and sets the output to indent should work:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="" version="1.0">

<xsl:output indent="yes" />

<xsl:template match="/">
    <xsl:apply-templates />

<xsl:template match="node()">
        <xsl:apply-templates />

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow