From: Yves L. <yv...@la...> - 2008-06-10 12:58:53
|
Hi, I'm trying to show that following two documents are similar: Control: <Products> <Group code="A"> <Category code="12"> <AmountMale>65000.00</AmountMale> <AmountFemale>0.00</AmountFemale> </Category> </Group> <Group code="B"> <Category code="12"> <AmountMale>0.00</AmountMale> <AmountFemale>65000.00</AmountFemale> </Category> <Category code="3"> <AmountMale>61000.00</AmountMale> <AmountFemale>0.00</AmountFemale> </Category> </Group> </Products> Test: <Products> <Group code="B"> <Category code="3"> <AmountMale>61000.00</AmountMale> <AmountFemale>0.00</AmountFemale> </Category> <Category code="12"> <AmountMale>0.00</AmountMale> <AmountFemale>65000.00</AmountFemale> </Category> </Group> <Group code="A"> <Category code="12"> <AmountMale>65000.00</AmountMale> <AmountFemale>0.00</AmountFemale> </Category> </Group> </Products> The problem here is that I have repeating elements on different levels (Group and Category). The order of Groups and Categories is not relevant. I've found the MultiLevelElementNameAndTextQualifier which solves the problem for one level. How can I solve the problem in general (repeating elements on n different levels)? I was not able to customise the MultiLevelElementNameAndTextQualifier class for my needs. Thanks, Yves |