public final class DOMDifferenceEngine extends AbstractDifferenceEngine
AbstractDifferenceEngine.ComparisonState, AbstractDifferenceEngine.DeferredComparison, AbstractDifferenceEngine.FinishedComparisonState, AbstractDifferenceEngine.OngoingComparisonState
Constructor and Description |
---|
DOMDifferenceEngine() |
Modifier and Type | Method and Description |
---|---|
void |
compare(Source control,
Source test)
Compares two pieces of XML and invokes the registered listeners.
|
void |
setDocumentBuilderFactory(DocumentBuilderFactory f)
|
addComparisonListener, addDifferenceListener, addMatchListener, compare, getAttributeFilter, getComparisonController, getDifferenceEvaluator, getNamespaceContext, getNodeFilter, getNodeMatcher, getParentXPath, getXPath, setAttributeFilter, setComparisonController, setDifferenceEvaluator, setNamespaceContext, setNodeFilter, setNodeMatcher
public void setDocumentBuilderFactory(DocumentBuilderFactory f)
DocumentBuilderFactory
to use when creating a
Document
from the Source
s to compare.
This is only used if the Source
passed to compare(javax.xml.transform.Source, javax.xml.transform.Source)
is not already a DOMSource
.
public void compare(Source control, Source test)
DifferenceEngine
Copyright © 2001–2017 XMLUnit. All rights reserved.