public class DifferentRootElementException extends DeltaXMLDitaMergeException
Indicates that the inputs have different root elements.
It is not possible to merge input files with different root elements with this product. Files being merged must, after having passed through the input filters, have the same root elements.
The definition of equivalence/equality for root elements is: if one element is in a namespace then the other element must be in a namespace with the same URI; additionally the localNames of the elements must be identical. Note that this does not preclude, for example, using different namespace prefixes or different use of a default namespace.
The use of the terms first and second in this class do not necessarily correspond to specific inputs of the merge process. Instead they are simply the first and second element names on which the error has been detected.
Modifier and Type | Method and Description |
---|---|
String |
getNamespacedName1()
Reports namespaced-name of the root element of the first merge input.
|
String |
getNamespacedName2()
Reports namespaced-name of the root element of the second merge input.
|
String |
getQName1()
Report the QName of the root element of the first merge input.
|
String |
getQName2()
Report the QName of the second merge input root.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String getQName1()
public String getQName2()
public String getNamespacedName1()
public String getNamespacedName2()
Copyright © 2023 Deltaman Group Ltd. All Rights Reserved.