Announcement

Collapse
No announcement yet.

XML Comparison

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • XML Comparison

    Comparing XML files is a bit more complicated that it might first seem.

    http://xmlunit.sourceforge.net/ has some details of a Java unit testing framework.

    For example, does the order of the nodes matter? In lots of cases it doesn't.

    <stuff-doc>
    <stuff>
    Stuff Stuff Stuff
    </stuff>
    <more-stuff>
    Some More Stuff
    </more-stuff>
    </stuff-doc>

    is the same as

    <stuff-doc>
    <more-stuff>
    Some More Stuff</more-stuff>
    <stuff>Stuff Stuff Stuff</stuff>
    </stuff-doc>

    When node order and whitespaces are irrelevant.

    It would be good to be able to set the options to get the these differences ignored.

    More on that website
Working...
X