public class ByNameAndTextRecSelector extends Object implements ElementSelector
ElementSelector
that allows two elements to be compared if
their name (including namespace URI, if any) and textual content is
the same and the same is true for all child elements recursively.
This ElementSelector
helps with structures nested more
deeply but may need to be combined inside a conditionalSelector
in order
to be useful for the document as a whole.
Constructor and Description |
---|
ByNameAndTextRecSelector() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeCompared(Element controlElement,
Element testElement)
Determine whether the two elements from the control and test
XML can be compared.
|
public boolean canBeCompared(Element controlElement, Element testElement)
ElementSelector
canBeCompared
in interface ElementSelector
Copyright © 2001–2017 XMLUnit. All rights reserved.