Forum Discussion

kusterg's avatar
kusterg
Occasional Contributor
14 years ago

Exclude node name from xmlCompare

I do compare many output reports of my application with XMLCheckpoints to compare the content.



With most of these reports the variable parts can be easily excluded by excluding the according node from the comparison.

For some reports that does not work though, as the main node names (e.g. Thisname jan 2011) is variable itself and contains a static part and a date part, where the date part is variable. I cannot just exclude the whole names, as there won't be anything compare if I did.



Is there an easy way to use xml checkpoints and excluding the name of the node from the comparison (but keep all the subnodes within the comparison)?