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)
ElementSelectorcanBeCompared in interface ElementSelectorcontrolElement - element of the control XMLtestElement - element of the test XMLCopyright © 2001–2025 XMLUnit. All rights reserved.