Notepad++ XML compare in order with xsl

Question

I need to compare two XML files but they aren't always in the same order. This is the format I have:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="Untitled.xsl"?>
    <Abc>
        <Blub>
            <A>23685975</A>
        </Blub>
        <B>
            <C>
                <ns2:D>148645605</ns2:D>
                <ns2:E>ACT</ns2:E>
            </C>
        </B>
   </Abc>

And the stylesheet I have is:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text"/>

    <xsl:template match="text()">
        <xsl:variable name="clean" select="normalize-space(.)"/>
        <xsl:if test="string-length($clean) > 0">
            <xsl:value-of select="$clean"/><xsl:text>&#10;</xsl:text>
        </xsl:if>
</xsl:template>
</xsl:stylesheet>

I really haven't worked with this before so I don't know a lot about it. What I need is to order the Blub so when I compare it, it shows atleast the right ones next to eachother. But how do I make them order it? I also need to see it like a gridview/table so it's easier to read. Can this all be done in Notepad++? I have tried XMLPad but that doesn't really work with what I need.

Could someone maybe please help?


Show source
| xml   | xslt   | compare   | notepad++   | stylesheet   2016-12-04 20:12 0 Answers

Answers to Notepad++ XML compare in order with xsl ( 0 )

Leave a reply to - Notepad++ XML compare in order with xsl

◀ Go back