Are there any alternatives to XmlUnit?

后端 未结 5 2034
眼角桃花
眼角桃花 2021-01-01 19:33

I need to diff large directory structures containing generated .xml and .wsdl files. The generated .xml files differ in the order that child elements appear. The XmlUnit D

5条回答
  •  难免孤独
    2021-01-01 19:50

    I agree with Jim's comment. Most of issues I faced with XmlUnit was due to incorrect initialization.

    However, you could always take a look at the XMLUnit source code and substitute Diff handler with your own if you feel like implementation is not doing what you need. The code is quite easy to understand and you will be able to fully control behavior without much effort needed to implement your own diff engine.

提交回复
热议问题