public class UnchangedElementHasChildrenException extends DeltaXMLProcessingException
In a changes-only delta, an unchanged element should not have any child attributes or elements. This is the core difference between a full-context delta and a changes-only one, for a combine a changes-only delta is used to apply the changes to one input XML document to re-create the second input XML document. A combine with a full-context delta doesn't make sense as it is possible to extract both input XML documents without combining (there are XSLT filters to achieve this included in the release).
A method is supplied to get the xpath of the unchanged element that incorrectly contains child attributes and elements.
Note: the getErrorCode()
method is provided for compatibility with earlier XML Compare releases; when
called with this exception the result will be: 53
Constructor and Description |
---|
UnchangedElementHasChildrenException(java.lang.String xpath)
Construct a new UnchangedElementHasChildrenException appropriate for use in the XML Compare code.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getXPath()
Reports the xpath of the element that is an unchanged element which incorrectly contains child attributes or elements.
|
getErrorCode, getSeverity
getCause, getThrowable
public UnchangedElementHasChildrenException(java.lang.String xpath)
xpath
- the xpath of the unchanged element that incorrectly contains child attributes and elements.public java.lang.String getXPath()
Copyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.