Forum Discussion
divman
11 years agoContributor
Sorry for late response. I read your requirement. Once i had the same requirement in my project and was found a solution. But i am not sure if that is a proper solution or not. Still you can use that. See this below link.
http://groovy.329449.n5.nabble.com/How-to-compare-2-XMLs-by-ignoring-set-of-elements-inside-it-tt5719438.html
http://groovy.329449.n5.nabble.com/How-to-compare-2-XMLs-by-ignoring-set-of-elements-inside-it-tt5719438.html
- nmrao11 years agoCommunity Hero@divman, thank you for sharing the link. As it was mentioned in the previous post, xmlunit was pointed with additional information that if there are complex list, then xmlunit does not handle unless one can input sorted xmls to it.
- divman11 years agoContributor
Hi Rao,
Thanks for your reply. Could you please help me understand here, what do you mean "input sorted xmls"?. Sorry if this is a basic question.
- nmrao11 years agoCommunity HeroXml Schema Definition contains repeating element which again complex one, then xmlunit does not sort, then mismatch happens on comparison.