Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.0-beta3a
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Environment:JDK 1.4.2
-
Number of attachments :
Description
JiBX beta3a creates unmarshalling code which tolerates deviations from an ideal XML document described by the binding.
So far so good.
This tolerance however, is bound to unexpected attributes found in a tag. It should ignore an unexpected element (and all its childs) until it sees an expected element again. It should only throw an exception if it does not see all expected elements.
It is normal that somebody adds content to XML and JiBX-generated code should not fail afterwards.
I totally agree, it is very common that XML structures are enhanced. I just had this case and the existing generated JiBX code did not work anymore.
It would be nice, if this feature could be enabled at least at the level of a binding element.