org.custommonkey.xmlunit

Class IgnoreTextAndAttributeValuesDifferenceListener

public class IgnoreTextAndAttributeValuesDifferenceListener extends Object implements DifferenceListener

Class to use when performing a Diff that only compares the structure of 2 pieces of XML, i.e. where the values of text and attribute nodes should be ignored.

See Also: Diff

Method Summary
intdifferenceFound(Difference difference)
voidskippedComparison(Node control, Node test)
Do nothing

Method Detail

differenceFound

public int differenceFound(Difference difference)

Returns: RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR to ignore differences in values of TEXT or ATTRIBUTE nodes, and RETURN_ACCEPT_DIFFERENCE to accept all other differences.

See Also: differenceFound

skippedComparison

public void skippedComparison(Node control, Node test)
Do nothing

See Also: DifferenceListener